Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (59 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (59 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "example_website_httk"
version = "0.1.0"
description = "Example of how to use httk as a static site generator (that can be extended with a backend)."
readme = "README.md"
license = "AGPL-3.0+"
requires-python = ">=3.12"
authors = [{ name = "Rickard Armiento", email = "gitcommits@armiento.net" }]
dependencies = [
"httk-serve @ git+https://github.com/httk/httk-serve",
]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"httpx>=0.27",
"ruff>=0.16,<0.17",
"pyright",
"mypy"
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py312"
src = ["src"]
line-length = 120
[tool.ruff.lint]
# TRY002: raising plain Exception is accepted httk style.
# TRY004: the ValueError/TypeError choice is public API; do not churn it.
# BLE001: broad excepts deliberately isolate plugin/loader/handler failures.
ignore = ["TRY002", "TRY004", "BLE001"]
[tool.ruff.format]
# preserve replaces black's skip-string-normalization: existing quote styles are kept.
quote-style = "preserve"
[tool.pyright]
pythonVersion = "3.12"
include = ["src", "serve_dynamic.py", "publish_static.py"]
extraPaths = ["src"]
reportMissingImports = true
[tool.mypy]
python_version = "3.12"
files = ["src", "serve_dynamic.py", "publish_static.py"]
mypy_path = ["src"]
namespace_packages = true
explicit_package_bases = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["yaml", "markdown", "docutils", "docutils.*", "httk.serve.web", "httk.serve.web.*"]
ignore_missing_imports = true