-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
70 lines (59 loc) · 2.13 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
[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 = "[email protected]" }]
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 = ["pytest", "pytest-asyncio", "flask", "starlette", "httpx", "async-asgi-testclient"]
scripts.run = "python -m pytest --strict-markers {args:-vv}"
[tool.hatch.envs.lint]
detached = true
dependencies = ["ruff == 0.7.*"]
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 = ["ANN", "PLR", "D107", "D203", "D213", "D401", "SIM117", "N801", "PLW2901", "PERF203", "COM812", "ISC001"]
[tool.ruff.lint.per-file-ignores]
"docs/*" = ["INP001"]
"examples/*" = ["I", "D", "T20", "INP001"]
"examples/flask/wsgi.py" = ["F401", "E402"]
"tests/*" = ["D", "S101", "ARG001", "BLE001", "INP001"]
[tool.mypy]
files = ["src"]
pretty = true
strict = true