-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (88 loc) · 2.28 KB
/
pyproject.toml
File metadata and controls
104 lines (88 loc) · 2.28 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[tool.poetry]
name = "syncdesk_api"
version = "0.1.0"
description = ""
authors = ["Pedro Garcia <pedrofsgarcia.pro@gmail.com>"]
readme = "README.md"
packages = [{include = "app"}, {include = "logs"}]
[tool.poetry.dependencies]
python = ">=3.12,<3.14"
fastapi = {extras = ["standard"], version = "^0.121.1"}
pydantic-settings = "^2.11.0"
gunicorn = "^23.0.0"
SQLAlchemy = "^2.0.44"
alembic = "^1.17.1"
asyncpg = "^0.30.0"
prometheus-client = "^0.23.1"
psutil = "^7.1.3"
passlib = {extras = ["argon2"], version = "^1.7.4"}
PyJWT = "^2.10.1"
motor = ">=3.5"
beanie = "<2.0"
resend = {extras = ["async"], version = "^2.27.0"}
jinja2 = "^3.1.6"
[tool.poetry.group.test.dependencies]
pytest = "^9.0.2"
pytest-asyncio = "^1.3.0"
pytest-env = "^1.2.0"
pytest-cov = "^7.0.0"
httpx = "^0.28.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.14.14"
bandit = "^1.8.6"
mypy = "^1.19.1"
pydantic = "^2.12.4"
pre-commit = "^4.4.0"
types-psutil = "^7.0.0.20251001"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = ["venv", "__pycache__"]
[tool.ruff.lint]
select = [
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
"F", # Pyflakes
"I", # Import order
"N", # Naming conventions
"B", # Bugbear (boas práticas e possíveis bugs)
"C4", # Comprehensions
"SIM",# Simplifiable code
"UP", # Upgrades de código Python (melhorias automáticas)
"E501", # line too long (handled by ruff format)
]
ignore = [
"F822", # undefined name in __all__
"F704", # unused awaitable
]
[tool.ruff.lint.per-file-ignores]
"app/**/__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
docstring-code-format = true
[tool.mypy]
strict = true
python_version = "3.12"
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["jwt.*", "passlib.*", "alembic.*", "motor.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra -q --cov=app --cov-report=term-missing"
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.coverage.run]
branch = true
source = ["app"]
[tool.coverage.report]
show_missing = true
skip_covered = true
[tool.bandit]
exclude_dirs = ["tests", "venv"]
exclude_files = ["run.py"]