-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
84 lines (75 loc) · 2.05 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
[project]
name = "modernizacao-manejo-api"
version = "0.1.0"
description = "API async robusta para gestão de rebanhos construída com FastAPI."
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"alembic>=1.14.0",
"fastapi[standard]>=0.115.5",
"greenlet>=3.1.1",
"opentelemetry-distro>=0.49b2",
"opentelemetry-exporter-otlp>=1.28.2",
"opentelemetry-instrumentation-fastapi>=0.49b2",
"opentelemetry-instrumentation-logging>=0.49b2",
"phonenumbers>=8.13.50",
"prometheus-client>=0.21.0",
"psycopg[binary]>=3.2.3",
"pwdlib[argon2]>=0.2.1",
"pydantic-core>=2.27.0",
"pydantic-extra-types>=2.10.0",
"pydantic-settings>=2.6.1",
"pydantic[email]>=2.10.0",
"pyjwt>=2.10.0",
"python-multipart>=0.0.17",
"sqlalchemy>=2.0.36",
"uvicorn[standard]>=0.32.1",
]
[dependency-groups]
dev = [
"gevent>=24.11.1",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pytest-factoryboy>=2.7.0",
"pytest>=8.3.3",
"radon>=6.0.1",
"ruff>=0.7.4",
"taskipy>=1.14.0",
"testcontainers>=4.8.2",
"bandit>=1.7.10",
"ipython>=8.29.0",
"locust>=2.32.3",
]
[tool.uv]
upgrade = true
[tool.ruff]
line-length = 79
extend-exclude = ['migrations']
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT']
[tool.ruff.lint.per-file-ignores]
'tests/*.py' = ['PLR2004']
'main.py' = ['E501', 'PLR6301']
'telemetry.py' = ['F841']
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.pytest.ini_options]
pythonpath = "."
addopts = '-p no:warnings'
asyncio_mode = 'auto'
[tool.coverage.run]
concurrency = ["thread", "gevent"]
[tool.taskipy.tasks]
lint = 'ruff check .; ruff check . --diff'
format = 'ruff format .; ruff check . --fix'
radon = 'radon cc ./app -a -na'
bandit = 'bandit -r ./app'
run = 'fastapi dev app/main.py'
pre_test = 'task lint'
test = 'export TEST=1 && pytest -s -x --cov=app -v'
post_test = 'coverage html'
ready = 'task lint; task radon; task bandit; task test'
export = 'uv export --no-hashes --no-dev > requirements.txt'
locust = 'locust -f locustfile.py'