-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
78 lines (66 loc) · 1.45 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
[tool.poetry]
name = "fastapi-sqlalchemy-2-alembic"
version = "0.1.0"
description = ""
authors = ["Dmitry Plevkov <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
fastapi = "^0.110.2"
uvicorn = "^0.29.0"
uvloop = "^0.19.0"
asyncpg = "^0.29.0"
alembic = "^1.13.1"
pydantic-settings = "^2.2.1"
sqlalchemy = {extras = ["asyncio"], version = "^2.0.29"}
[tool.poetry.group.dev.dependencies]
httpx = "^0.27.0"
sqlalchemy-utils = "^0.41.2"
pytest = "^8.1.1"
yarl = "^1.9.4"
mypy = "^1.9.0"
black = "^24.4.0"
isort = "^5.13.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
follow_imports = "normal"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.black]
target-version = ["py39"]
exclude = '''
(
/(
\.git
| \.mypy_cache
| venv
| alembic
)/
)
'''
[tool.isort]
# isort configuration:
# https://pycqa.github.io/isort/index.html
# See https://pycqa.github.io/isort/docs/configuration/profiles.html
profile = "black"
skip_glob = ['venv', 'alembic']
combine_as_imports = true
combine_star = true