-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (62 loc) · 1.65 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
[project]
name = "app"
version = "0.1.0"
description = ""
authors = [{ name = "Walber Vaz da Silva", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.13, <4.0"
dependencies = [
"fastapi[standard] (>=0.115.8,<0.116.0)",
"uvicorn[standard] (>=0.34.0,<0.35.0)",
"psycopg[binary] (>=3.2.5,<4.0.0)",
"sqlmodel (>=0.0.22,<0.0.23)",
"gunicorn (>=23.0.0,<24.0.0)",
"pwdlib[argon2] (>=0.2.1,<0.3.0)",
"pydantic-settings (>=2.8.0,<3.0.0)",
"alembic (>=1.14.1,<2.0.0)",
"pyjwt (>=2.10.1,<3.0.0)",
]
[tool.poetry]
packages = [{ include = "app", from = "src" }]
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.4"
pytest-cov = "^6.0.0"
taskipy = "^1.14.1"
ruff = "^0.9.7"
pre-commit = "^4.1.0"
pytest-asyncio = "^0.25.3"
pytest-order = "^1.3.0"
faker = "^36.1.1"
ipython = "^8.32.0"
freezegun = "^1.5.1"
[tool.ruff]
line-length = 79
extend-exclude = ['migrations']
target-version = 'py313'
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT']
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
pythonpath = "."
addopts = '-p no:warnings'
[tool.taskipy.tasks]
lint = 'ruff check'
pre_format = 'ruff check --fix'
format = 'ruff format'
run = 'fastapi dev src/app/main.py'
pre_test = 'task lint'
test = 'pytest -s -x --cov=src/app -vv'
post_test = 'coverage html'
makemigrations = 'alembic revision --autogenerate -m'
migrate = 'alembic upgrade head'
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"