-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
pyproject.toml
138 lines (131 loc) · 2.49 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[project]
name = "awesome-fastapi-projects"
version = "0.1.0"
description = "A web app built to index awesome projects built with FastAPI."
authors = [
{name = "Vladyslav Fedoriuk", email="[email protected]"}
]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"aiofiles",
"aiosqlite",
"alembic",
"anyio",
"httpx",
"httpx-sse",
"loguru",
"pydantic",
"sqlalchemy[asyncio,mypy]",
"stamina",
"third-party-imports",
"typer[all]",
]
[project.optional-dependencies]
dev = [
"black",
"ipython",
"mypy",
"pip-tools",
"pre-commit",
"pyproject-fmt",
"ruff",
"types-aiofiles",
]
test = [
"dirty-equals",
"polyfactory",
"pytest",
"pytest-anyio",
"pytest-cov",
"pytest-mock",
]
[tool.setuptools]
py-modules = ["app"]
[tool.black]
line-length = 88
target_version = ['py311']
include = '\.pyi?$'
force-exclude = '''
(
/(
\.bzr
| \.direnv
| \.eggs
| \.git
| \.git-rewrite
| \.hg
| \.mypy_cache
| \.ruff_cache
| \.tox
| \.nox
| \.pants.d
| \.pytype
| \.venv
| \.svn
| \.ipynb_checkpoints
| \.egg-info
| __pypackages__
| _build
| buck-out
| build
| dist
| node_modules
| venv
)/
)
''' # To comply with ruff config
[tool.ruff]
line-length = 88
target-version = 'py311'
required-version = "0.0.280"
extend-select = [
"D", # pydocstyle
"W", # pycodestyle
"C90", # mccabe
"I", # isort
"UP", # pyupgrade
"ASYNC", # flake8-async
"S", # flake8-bandit
"B", # flake8-bugbear
"ANN", # flake8-annotations
"S", # flake8-bandit
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"INP", # flake8-no-pep420
"PT", # flake8-pytest-style
"TID", # flake8-tidy-imports
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"Q", # flake8-quotes
]
[tool.ruff.per-file-ignores]
# Ignore missing docstrings in migrations and alembic files
"**/migrations/*.py" = ["D"]
"**/migrations/env.py" = ["ERA001"]
"**/tests/*.py" = ["S101"]
"**/conftest.py" = ["S101"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
testpaths = "tests"
[tool.coverage.run]
branch = true
omit = [
"tests/*",
]
[tool.mypy]
plugins = [
"pydantic.mypy",
"sqlalchemy.ext.mypy.plugin",
]
strict = true
exclude = [
"tests",
"migrations",
"conftest.py",
"factories.py",
]