-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (82 loc) · 1.59 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (82 loc) · 1.59 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
[project]
name = "fastapi-di-tpl"
version = "0.1.0"
description = "FastAPI with Dependency Injector Template"
readme = "README.md"
requires-python = ">=3.14, <3.15"
dependencies = [
"dependency-injector",
"fastapi[standard]",
"loguru",
"pydantic-settings",
]
[dependency-groups]
dev = [
"ipykernel",
"ruff",
"ty",
"prek",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-env",
"pytest-mock",
"pytest-xdist",
"types-pyyaml",
]
# ---------------------------------
# Type Checker
# ---------------------------------
[tool.ty.src]
include = ["src", "tests"]
exclude = [".venv"]
[tool.ty.rules]
possibly-missing-import = "ignore"
# ---------------------------------
# Formatter / Linter
# ---------------------------------
[tool.ruff]
line-length = 120
target-version = "py314"
exclude = [".venv"]
[tool.ruff.lint]
select = [
"F", # flake
"I", # isort
]
ignore = ["C901", "E501"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# ---------------------------------
# Test
# ---------------------------------
[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",
]