-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (69 loc) · 2.07 KB
/
pyproject.toml
File metadata and controls
79 lines (69 loc) · 2.07 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
[project]
name = "python-microservice-templates"
version = "0.1.0"
description = "A production-ready FastAPI template with PostgreSQL, SQLAlchemy, Alembic, Docker support and etc."
authors = [
{ name = "allcupsnotinprivate", email = "" }
]
dependencies = [
"aioinject>=0.38.1",
"fastapi>=0.115.12",
"uvicorn>=0.34.2",
"sqlalchemy>=2.0.41",
"pytz>=2025.2",
"psycopg>=3.2.9",
"greenlet>=3.2.2",
"alembic>=1.16.1",
"pydantic-settings>=2.9.1",
"apscheduler>=3.11.0",
"orjson>=3.10.18",
"loguru>=0.7.3",
]
readme = "README.md"
requires-python = ">= 3.12"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"typer>=0.16.0",
"mypy>=1.16.0",
"sqlalchemy[mypy]>=2.0.41",
"pytz[mypy]>=2025.2",
"types-pytz>=2025.2.0.20250516",
"bandit>=1.8.3",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/app"]
[tool.ruff]
line-length = 120
indent-width = 4
fix = true
output-format = "grouped"
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
[tool.ruff.lint]
ignore = ["F841", "E722", "E712"]
extend-select = ["I"]
extend-unsafe-fixes = ["E", "F401"]
[tool.mypy]
python_version = "3.12"
plugins = [
"pydantic.mypy",
"sqlalchemy.ext.mypy.plugin"
]
strict = true
mypy_path = "src"
ignore_missing_imports = true
[tool.bandit]
skips = ["B104"]
[tool.rye.scripts]
migrations = { cmd = ["python", "src/app/infrastructure/database/migrations/cli.py"], env-file = ".dev.env" }
asgi = { cmd = ["python", "src/app/main.py"], env-file = ".dev.env" }
typecheck = { cmd = ["mypy", "src/"] }
security-check = { cmd = ["sh", "-c", "bandit -c pyproject.toml -r src/"] }
check-all = { cmd = ["sh", "-c", "ruff format src/ && ruff check src/ && mypy src/ && bandit -c pyproject.toml -r src/"] }