-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (106 loc) · 2.84 KB
/
pyproject.toml
File metadata and controls
116 lines (106 loc) · 2.84 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
105
106
107
108
109
110
111
112
113
114
115
116
[project]
name = "api-forge"
version = "0.1.0"
description = "Production-ready API platform with OIDC auth, PostgreSQL, Redis, Temporal workflows, and Kubernetes deployment"
authors = [
{name = "Your Name", email = "your.email@example.com"}
]
requires-python = ">=3.13"
dependencies = [
# Core dependencies for the template code
"authlib>=1.6.4",
"fastapi>=0.116.1",
"pydantic[email]>=2.11.9",
"pydantic-settings>=2.6.0",
"python-dotenv>=1.1.1",
"pyyaml>=6.0.0",
"sqlmodel>=0.0.24",
"starlette>=0.47.3",
"uvicorn[standard]>=0.35.0",
"httpx>=0.27.2",
"cachetools>=5.3.3",
"fastapi-limiter>=0.1.6",
"aioredis>=2.0.0",
"structlog>=23.0.0",
"loguru>=0.7.3",
"typer>=0.12.0",
"jinja2>=3.1.0",
"psycopg2-binary>=2.9.11",
"temporalio>=1.18.1",
"requests>=2.32.5",
"ruamel.yaml>=0.18.6",
"kr8s>=0.20.14",
"alembic>=1.13.0",
"click>=8.2.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=4.0.0",
"pytest-xdist>=3.5.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"types-authlib>=1.6.2.20250914",
"copier>=9.0.0",
"pre-commit>=4.5.0",
"types-psycopg2>=2.9.21.20251012",
]
[project.scripts]
api-forge-init-db = "src.app.runtime.init_db:init_db"
api-forge-cli = "src.cli:app"
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**/*" = ["F401", "F811"]
[tool.mypy]
python_version = "3.13"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
strict_optional = true
disable_error_code = ["no-any-return"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-q --tb=short -n auto --dist=loadgroup"
python_files = "tests.py test_*.py *_tests.py"
pythonpath = ["."]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"manual: marks tests as requiring manual intervention (deselect with '-m \"not manual\"')",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"k8s: marks tests that require Kubernetes cluster",
"serial: marks tests that must run serially (not in parallel)",
]