-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (96 loc) · 2.27 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
[project]
name = "pisaka-demo-01"
version = "0.1.0"
description = "Пр иимер структуры проекта"
authors = [
{name = "Dmitry Smirnov", email = "[email protected]"},
]
dependencies = [
"fastapi>=0.115.4",
"sqlalchemy>=2.0.36",
"dependency-injector>=4.42.0",
"pydantic>=2.9.2",
"uvicorn>=0.32.0",
"aiosqlite>=0.20.0",
"aioinject>=0.35.0",
"pyjwt[crypto]>=2.9.0",
"typer>=0.13.0",
"pydantic-settings[yaml]>=2.6.1",
"dynaconf[toml,yaml]>=3.2.6",
]
requires-python = ">=3.12"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.isort]
profile = "black"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
dev = [
"pytest>=8.3.3",
"ruff>=0.7.1",
"black>=24.10.0",
"isort>=5.13.2",
"mypy>=1.13.0",
]
[tool.pdm.scripts]
lint = { composite = [
"ruff check . --fix --show-fixes",
"black .",
"ruff check . --fix --show-fixes",
"mypy .",
"isort .",
] }
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = "tests"
[tool.ruff]
src = ["src", "tests"]
lint.select = ["ALL"]
lint.ignore = [
"E501", # Line Length
"A003", # Class attribute ... is shadowing a python builtin
"ANN101",
"ANN102",
"D", # pydocstyle
"PD", # pandas-vet
"I", # Isort
"INP",
"TCH001",
"TCH002",
"TCH003",
"EXE",
"RUF001",
"RUF002",
"RUF003",
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"RUF018", # Avoid assignment expressions in `assert` statements, e.g. `assert (foo := ...) is not None`
"TD002",
"TD003",
"FIX002",
"PLR0913", # Too many arguments in function definition
"PERF401", # Use a list comprehension to create a transformed list
"EM101",
"EM102",
"TRY003",
"G004", # Logging statement uses f-string
"PERF403",
"ERA001", # Found commented-out code
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "SLF001", "PLR0913", "S311"]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"fastapi.Body",
"fastapi.Cookie",
"fastapi.Depends",
"fastapi.File",
"fastapi.Form",
"fastapi.Header",
"fastapi.Path",
"fastapi.Query",
"fastapi.Security",
]