-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
71 lines (63 loc) · 1.66 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
[tool.poetry]
name = "fastapi-template"
version = "0.1.0"
description = ""
authors = ["valon <valon.januzaj98@gmail.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.112.2"
uvicorn = "^0.30.6"
pydantic-settings = "^2.4.0"
sqlalchemy = {extras = ["mypy"], version = "^2.0.36"}
alembic = "^1.13.2"
psycopg = {version = "^3.1.13", extras = ["binary"]}
celery = {extras = ["redis"], version = "^5.4.0"}
gunicorn = "^23.0.0"
inflection = "^0.5.1"
passlib = "^1.7.4"
pydantic = {extras = ["email"], version = "^2.9.2"}
python-multipart = "^0.0.16"
pyjwt = "^2.9.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
httpx = "^0.27.2"
ruff = "^0.6.3"
pytest-sugar = "^1.0.0"
mypy = "^1.11.2"
pytest-celery = "^1.1.2"
types-jwt = "^0.1.3"
types-passlib = "^1.7.7.20240819"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
strict = true
exclude = ["venv", ".venv", "alembic"]
plugins = ["sqlalchemy.ext.mypy.plugin"]
[tool.ruff]
target-version = "py312"
exclude = ["alembic"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"W", # pycodestyle warnings
"I", # isort
"E", # pycodestyle errors
"C4", # flake8-comprehensions
"UP", # pyupgrade
"F", # pyflakes
"ARG001", # unused arguments in functions
]
ignore = [
"E501", # line too long
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
"B904", # Allow raising exceptions without from e, for HTTPException
]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true