-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (94 loc) · 2.43 KB
/
pyproject.toml
File metadata and controls
104 lines (94 loc) · 2.43 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "staticware"
version = "0.2.0"
description = "ASGI middleware for static file serving with content-based cache busting"
readme = "README.md"
authors = [
{name = "Audrey M. Roy Greenfeld", email = "audrey@feldroy.com"}
]
maintainers = [
{name = "Audrey M. Roy Greenfeld", email = "audrey@feldroy.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
license = {text = "MIT"}
dependencies = []
requires-python = ">= 3.12"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typecheck" },
]
lint = [
"ruff",
]
test = [
"coverage",
"pytest",
"pytest-asyncio",
]
typecheck = [
"ty",
]
docs = [
"zensical",
"mkdocstrings-python",
]
[project.urls]
Bugs = "https://github.com/feldroy/staticware/issues"
Changelog = "https://github.com/feldroy/staticware/releases"
Documentation = "https://feldroy.github.io/staticware/"
Homepage = "https://github.com/feldroy/staticware"
Source = "https://github.com/feldroy/staticware"
[tool.pytest.ini_options]
# "auto" means any `async def test_*` runs on an event loop automatically.
# No @pytest.mark.asyncio decorator needed. Plain `def test_*` runs normally.
asyncio_mode = "auto"
[tool.ty]
# All rules are enabled as "error" by default; no need to specify unless overriding.
# Example override: relax a rule for the entire project (uncomment if needed).
# rules.TY015 = "warn" # For invalid-argument-type, warn instead of error.
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 90
exclude_also = [
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"@typing.overload",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.uv]
package = true
default-groups = ["dev"]