-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
107 lines (93 loc) · 2.45 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "picobox"
description = "Dependency injection framework designed with Python in mind."
readme = "README.rst"
requires-python = ">=3.9"
license = "MIT"
authors = [{ name = "Ihor Kalnytskyi", email = "ihor@kalnytskyi.com" }]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://picobox.readthedocs.io"
Source = "https://github.com/ikalnytskyi/picobox"
Bugs = "https://github.com/ikalnytskyi/picobox/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.test]
dependencies = [
"async-asgi-testclient",
"flask",
"httpx",
"pytest",
"pytest-asyncio",
"starlette",
]
scripts.run = "python -m pytest --strict-markers {args:-vv}"
[tool.hatch.envs.lint]
detached = true
dependencies = ["ruff == 0.9.*"]
scripts.run = ["ruff check {args:.}", "ruff format --check --diff {args:.}"]
[tool.hatch.envs.type]
dependencies = ["mypy", "flask"]
scripts.run = ["mypy {args}"]
[tool.hatch.envs.docs]
pre-install-commands = ["python -m pip install -r docs/requirements.txt"]
scripts.run = "sphinx-build -W -b html docs docs/_build/"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401",
"COM812",
"D107",
"D203",
"D213",
"D401",
"PERF203",
"PLR",
"PLW2901",
"SIM117",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"_asgiscope",
"_flask_store_obj",
"_flaskscope",
"_wsgiscope",
"application",
"contextvars",
"namespacescope",
"noscope",
"request",
"singleton",
"threadlocal",
]
[tool.ruff.lint.per-file-ignores]
"docs/*" = ["INP001"]
"examples/*" = ["ANN", "I", "D", "T20", "INP001"]
"examples/flask/wsgi.py" = ["F401", "E402"]
"tests/*" = ["ANN", "D", "S101", "ARG001", "BLE001", "INP001"]
[tool.mypy]
files = ["src"]
pretty = true
strict = true