-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
122 lines (109 loc) · 2.72 KB
/
pyproject.toml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "ludic"
dynamic = ["version"]
description = "Lightweight framework for building dynamic HTML pages in pure Python."
keywords = ["html", "htmx", "async", "web", "templating"]
authors = [{ name = "Pavel Dedík", email = "dedikx@gmail.com" }]
maintainers = [{ name = "Pavel Dedík", email = "dedikx@gmail.com" }]
requires-python = ">=3.12"
license = "MIT"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AnyIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"typing_extensions>=4.9.0",
]
[project.optional-dependencies]
full = [
"python-multipart>=0.0.9",
"starlette",
"typeguard>=4.1.5",
"pygments",
]
django = [
"django",
]
dev = [
"mypy",
"types-pygments",
"django-stubs",
]
test = [
"pytest",
"pytest-cov",
"httpx",
]
[tool.hatch.envs.default]
python = "3.12"
platforms = ["linux", "macos"]
description = "Default environment with Python 3.12 for maximum compatibility"
features = ["dev", "full", "django", "test"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "_version.py"
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # flake8 rules
"F", # flake8 rules
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"I", # isort
"D2", # pydocstyle
"C901", # maccabe complexity
"S", # flake8-bandit
"UP", # pyupgrade
"T10", # flake8-debugger
]
ignore = [
"B904",
"S101",
"D203",
"D211",
"D213",
"UP040",
]
fixable = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["ludic"]
known-third-party = ["examples"]
[tool.mypy]
python_version = "3.12"
strict = true
disallow_subclassing_any = false
plugins = "ludic/mypy_plugin.py"
[tool.pytest.ini_options]
testpaths = "tests"
norecursedirs = ".git docs .pytest_cache .mypy_cache .ruff_cache"
filterwarnings = [
"ignore:The \\'app\\' shortcut is now deprecated. Use the explicit style \\'transport=WSGITransport\\(app=\\.\\.\\.\\)\\' instead\\.",
]
[tool.coverage.run]
omit = ["tests/**"]
[tool.coverage.paths]
source = ["ludic", "examples"]
[tool.coverage.report]
show_missing = true
precision = 2
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"pass"
]