-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (92 loc) · 2.1 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
106
107
108
109
110
111
[tool.poetry]
name = "dyapi"
version = "0.9.4"
description = ""
authors = ["Artem Bogdanov <[email protected]>"]
readme = "README.md"
packages = [{ include = "dyapi", from = "." }]
[tool.poetry.dependencies]
python = "^3.9"
pydantic = "^2.6.4"
fastapi = "^0.110.1"
[tool.poetry.group.examples.dependencies]
uvicorn = "^0.29.0"
[tool.poetry.group.postgres_storage.dependencies]
sqlalchemy = "^2.0.29"
asyncpg = "^0.29.0"
greenlet = "^3.0.3"
[tool.poetry.group.tests.dependencies]
pytest = "^8.1.1"
pytest-asyncio = "^0.23.6"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
plugins = ["pydantic.mypy"]
exclude = ["tests/*"]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
pretty = true
show_column_numbers = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.ruff]
select = ["E", "F", "TID252"]
ignore = []
fixable = ["ALL"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
]
line-length = 88
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py311"
[tool.ruff.extend-per-file-ignores]
"*/**/__init__.py" = ["F401", "F403"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.isort]
src_paths = ["src", "app", "tests"]
py_version = 311
line_length = 88
profile = "black"
from_first = false
multi_line_output = 3
include_trailing_comma = true
split_on_trailing_comma = true
color_output = true
use_parentheses = true
atomic = true
combine_as_imports = true
combine_star = true
group_by_package = true
honor_noqa = true
remove_redundant_aliases = true
indent = ' '
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.pytest.ini_options]
asyncio_mode = "auto"