-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject-old.toml
150 lines (126 loc) · 3.1 KB
/
pyproject-old.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[project]
name = "blacksheep-msgpack-starter"
[tool.poetry]
name = "blacksheep-msgspeck-starter"
version = "0.1.0"
package-mode = false
description = ""
authors = ["Galtozzy <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
blacksheep = "^2.0.7"
uvicorn = "^0.32.0"
uvloop = "^0.20.0"
pydantic-settings = "^2.6.0"
markupsafe = "^3.0.2"
pydantic = "^2.9.2"
msgspec = "^0.18.6"
gunicorn = "^23.0.0"
[tool.poetry.group.dev.dependencies]
ipython = "^8.29.0"
rich = "^13.9.3"
pytest = "^8.3.3"
pytest-mock = "^3.14.0"
pytest-cov = "^5.0.0"
taskipy = "^1.14.0"
mypy = "^1.13.0"
coverage = "^7.6.4"
pytest-asyncio = "^0.24.0"
pytest-socket = "^0.7.0"
ruff = "^0.7.1"
[tool.taskipy.tasks]
format-and-lint = "task ruff && task mypy-lint"
ruff = "ruff format ./app/ ./docker/ ./tests/ && ruff check ./app/ ./docker/ ./tests/ --fix --unsafe-fixes"
tests = "PYTHONPATH=. pytest tests/ -v"
ruff-lint = "ruff check ./app"
mypy-lint = "mypy --install-types --non-interactive ./app/"
poetry-check = "poetry check"
pip-check = "pip check"
[tool.ruff]
line-length = 120
extend-exclude = ["site-packages", "*.pyi"]
target-version = 'py312'
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = []
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.format]
quote-style = 'single'
indent-style = 'space'
line-ending = 'auto'
skip-magic-trailing-comma = false
exclude = ['*.pyi']
[tool.ruff.lint.mccabe]
max-complexity = 6
[tool.ruff.lint.isort]
split-on-trailing-comma = false
lines-after-imports = 2
known-first-party = ["app"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.mypy]
# Mypy configuration:
# https://mypy.readthedocs.io/en/latest/config_file.html
strict = true
pretty = true
exclude = [
'test_',
]
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
'--strict-markers',
'--strict-config',
'--allow-unix-socket',
'--allow-hosts=127.0.0.1,127.0.1.1,::1',
'--tb=short',
'--cov=app/',
'--cov-branch',
'--cov-report=term-missing:skip-covered',
'--cov-report=html',
'--cov-fail-under=80',
]
asyncio_mode = "auto"
python_files = "test*.py"
# Directories that are not visited by pytest collector:
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__ config docker etc"
testpaths = [
"tests",
]
[tool.coverage.run]
# Coverage configuration:
# https://coverage.readthedocs.io/en/latest/config.html
omit = []
concurrency = ['thread']
[tool.coverage.report]
omit = [
]
exclude_lines = [
'pragma: no cover',
'@abstract',
'def __repr__',
'raise AssertionError',
'raise NotImplementedError',
'if __name__ == .__main__.:',
'__all__',
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"