-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
90 lines (77 loc) · 1.83 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
[tool.poetry]
name = "fastapi-toolkit"
version = "0.0.3"
description = "A Sample FastAPI app"
authors = ["Payam Taheri"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.110"
uvicorn = "^0.27"
#psycopg2-binary = "^2"
redis = "^4"
celery = "^5"
alembic = "^1"
tenacity = "^8"
aiosqlite = "^0.20"
pytest = "^8"
httpx = "^0.26"
pre-commit = "^3"
python-multipart = "0.0.9"
python-jose = { version = "^3", extras = ["cryptography"] }
passlib = { version = "^1", extras = ["bcrypt"] }
websockets = "^12"
coverage = "^7"
motor = "^3"
pymongo = "^4"
Jinja2 = "^3"
asyncpg = "^0.29"
pytest-asyncio = "^0.23"
[tool.poetry.group.dev.dependencies]
commitizen = "^3"
[tool.poetry.group.lint.dependencies]
ruff = "^0.2"
mypy = "^1"
[tool.poetry.group.mypy.dependencies]
types-python-jose = "^3"
types-passlib = "^1"
celery-stubs = "^0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
fix = true
indent-width = 4
line-length = 88
target-version = "py311"
exclude = ["migrations/*.*", "alembic/*.*"]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
lint.ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
]
[tool.ruff.lint.isort]
known-third-party = ["fastapi", "pydantic", "starlette"]
[tool.mypy]
python_version = 3.11
exclude = ['.venv/*.*', 'app/songs/models.py', 'migrations/*.*', "alembic/*.*"]
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.0.3"
tag_format = "v$version"
version_files = [
"README.md",
"pyproject.toml:version",
"app/__init__.py:__version__",
]
major_version_zero = true