-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (78 loc) · 1.58 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
[project]
name = "src"
version = "v1.0"
description = "Test task for Aviasales."
authors = [{name = "Amin Abbasov", email = "aminabbasov@proton.me"}]
readme = "README.md"
requires-python = ">= 3.12"
dependencies = [
"fastapi",
"uvicorn",
"python-multipart",
"lxml",
"pydantic-xml[lxml]",
]
[project.optional-dependencies]
dev = [
"ipython",
"ruff",
"mypy",
"lxml-stubs",
"httpx",
"pytest",
"pytest-xdist",
"pytest-randomly",
"pytest-deadfixtures",
"pytest-cov",
]
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["F401"]
fixable = ["ALL"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["src", "core", "api", "tests"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.mypy]
mypy_path = "src"
explicit_package_bases = true
namespace_packages = true
ignore_missing_imports = true
[tool.pytest.ini_options]
python_files = "test*.py"
pythonpath = ". src"
filterwarnings = [
"ignore::FutureWarning", # due to lxml's etree.pyx:1203 warning
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abc.abstractmethod",
"@abstractmethod",
'^\s*\.\.\.', # to exclude "..."
"raise NotImplementedError",
]