|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=68", "wheel"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "example_website_httk" |
| 7 | +version = "0.1.0" |
| 8 | +description = "Example of how to use httk as a static site generator (that can be extended with a backend)." |
| 9 | +readme = "README.md" |
| 10 | +license = "AGPL-3.0+" |
| 11 | +requires-python = ">=3.11" |
| 12 | +authors = [{ name = "Rickard Armiento", email = "gitcommits@armiento.net" }] |
| 13 | +dependencies = [ |
| 14 | + "httk-web @ git+https://github.com/httk/httk-web", |
| 15 | +] |
| 16 | +classifiers = [ |
| 17 | + "Operating System :: OS Independent", |
| 18 | + "Programming Language :: Python", |
| 19 | +] |
| 20 | +[project.optional-dependencies] |
| 21 | +dev = [ |
| 22 | + "pytest>=8.0", |
| 23 | + "httpx>=0.27", |
| 24 | + "black", |
| 25 | + "ruff", |
| 26 | + "isort", |
| 27 | + "pyright", |
| 28 | + "mypy" |
| 29 | +] |
| 30 | + |
| 31 | +[tool.setuptools] |
| 32 | +package-dir = {"" = "src"} |
| 33 | + |
| 34 | +[tool.setuptools.packages.find] |
| 35 | +where = ["src"] |
| 36 | + |
| 37 | +[tool.pytest.ini_options] |
| 38 | +testpaths = ["tests"] |
| 39 | + |
| 40 | +[tool.isort] |
| 41 | +profile = "black" |
| 42 | + |
| 43 | +[tool.ruff] |
| 44 | +target-version = "py311" |
| 45 | +src = ["src"] |
| 46 | + |
| 47 | +[tool.black] |
| 48 | +target-version = ["py311"] |
| 49 | +line-length = 120 |
| 50 | +skip-string-normalization = true |
| 51 | + |
| 52 | +[tool.pyright] |
| 53 | +pythonVersion = "3.11" |
| 54 | +include = ["src", "serve_dynamic.py", "publish_static.py"] |
| 55 | +extraPaths = ["src"] |
| 56 | +reportMissingImports = true |
| 57 | + |
| 58 | +[tool.mypy] |
| 59 | +python_version = "3.11" |
| 60 | +files = ["src", "serve_dynamic.py", "publish_static.py"] |
| 61 | +mypy_path = ["src"] |
| 62 | +namespace_packages = true |
| 63 | +explicit_package_bases = true |
| 64 | +warn_unused_ignores = true |
| 65 | + |
| 66 | +[[tool.mypy.overrides]] |
| 67 | +module = ["yaml", "markdown", "docutils", "docutils.*", "httk.web", "httk.web.*"] |
| 68 | +ignore_missing_imports = true |
0 commit comments