-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
78 lines (67 loc) · 1.54 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
[tool.poetry]
name = "fast-api-sqlalchemy-template"
version = "0"
description = "Async template on FastAPI and SQLAlchemy 2"
authors = ["Artur Shiriev <[email protected]>"]
license = "MIT License"
[tool.poetry.dependencies]
python = "^3.11"
pydantic-settings = "*"
granian = "*"
# database
alembic = "*"
psycopg2 = "*"
sqlalchemy = "*"
asyncpg = "*"
greenlet = "^3.0.3"
python-dotenv = "^1.0.1"
fastapi = "^0.111.0"
sqlalchemy-utils = "^0.41.2"
[tool.poetry.group.dev.dependencies]
httpx = "*"
pytest = "*"
pytest-cov = "*"
pytest-asyncio = "*"
ruff = "*"
mypy = "*"
asyncpg-stubs = "*"
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
target-version = "py311"
extend-exclude = ["bin"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D1", # allow missing docstrings
"FBT", # allow boolean args
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"INP", # ignore flake8-no-pep420
"B008", # function-call-in-default-argument
"ANN204", # no typings for __init__
"RUF001", # allow cyrillic letters
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = [
"S101", # allow asserts
]
[tool.ruff.lint.isort]
lines-after-imports = 2
no-lines-before = ["standard-library", "local-folder"]
[tool.mypy]
python_version = "3.11"
strict = true
pretty = true
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report term-missing"
asyncio_mode = "auto"
[tool.coverage.report]
exclude_also = [
"if typing.TYPE_CHECKING:",
]
[[pydantic-mypy]]
warn_required_dynamic_aliases = true
warn_untyped_fields = true
init_typed = true