-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (89 loc) · 1.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
[tool.poetry]
name = "fastapi-di-tpl"
version = "0.1.0"
description = "FastAPI with Dependency Injector Template"
authors = ["devbruce <bruce93k@gmail.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "~3.13"
fastapi = {extras = ["standard"], version = "~0.115.10"}
pydantic-settings = "~2.8.1"
dependency-injector = "~4.45.0"
loguru = "~0.7.3"
[tool.poetry.group.dev.dependencies]
pytest = "~8.3.4"
pytest-asyncio = "~0.25.3"
pytest-cov = "~6.0.0"
pytest-env = "~1.1.5"
pytest-mock = "~3.14.0"
pytest-xdist = {extras = ["psutil"], version = "~3.6.1"}
flake8-pyproject = "~1.2.3"
black = "~25.1.0"
isort = "~6.0.1"
mypy = "~1.15.0"
types-pyyaml = "~6.0.12.20240917"
pre-commit = "~4.1.0"
ipykernel = "~6.29.5"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
python_version = "3.13"
ignore_missing_imports = true
enable_incomplete_feature = ["NewGenericSyntax"]
enable_error_code = ["explicit-override"]
exclude = [
".venv",
]
[tool.black]
line-length = 120
target-version = ["py313"]
exclude = '''
(
/(
| \.venv
)/
)
'''
[tool.isort]
profile = "black"
line_length = 120
force_single_line = true
skip_glob = [
".venv/**",
]
[tool.flake8]
ignore = ["C901", "E501"]
max-line-length = 120
per-file-ignores = [
"__init__.py:F401",
]
exclude = [
".venv",
]
[tool.pytest.ini_options]
markers = [
"e2e: End-to-end test",
"integration: Combined entity test",
"unit: Single entity",
]
asyncio_mode = "auto"
pythonpath = [
"src",
"tests",
]
testpaths = [
"tests",
]
addopts = [
"--numprocesses=auto",
"--disable-warnings",
"--cov",
"--cov-config=.coveragerc",
"--cov-report=term",
"--cov-report=xml",
]
env = [
"APP_ENV=test",
]