-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (79 loc) · 1.69 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
85
86
87
88
89
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "HorizonX-FastAPI-Template"
version = "1.0.0"
description = "A template for FastAPI with SQLAlchemy, PostgreSQL, Redis caching, rate limiting, and RBAC."
readme = "README.md"
requires-python = ">=3.13"
license = "MIT"
authors = [
{ name = "Sudeep Ranjan Sahoo", email = "sudeepranjan@iitbhilai.ac.in" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: FastAPI",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"fastapi[standard]",
"uvicorn",
"sqlalchemy",
"alembic",
"asyncpg",
"psycopg2-binary",
"fastapi-cache2",
"redis",
"python-jose[cryptography]",
"passlib[bcrypt]",
"python-multipart",
"python-dotenv",
"pydantic",
"pydantic-settings",
"email-validator",
"loguru",
"hatchling",
"mypy",
"ruff",
]
[project.scripts]
dev = "src.settings.run:dev_command"
prod = "src.settings.run:prod_command"
format = "src.settings.run:ruff_fix"
lint = "src.settings.run:ruff_lint"
makemigrations = "src.settings.run:makemigrations"
migrate = "src.settings.run:migrate"
createsuperuser = "scripts.create_superuser:main"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.uv]
package = true
[tool.ruff]
target-version = "py311"
line-length = 120
fix = true
lint.select = [
"F",
"E",
"W",
"C",
"UP",
"I",
]
lint.ignore = [
"E402",
"UP006",
"UP007",
"E741",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401",
"F403",
]
[tool.ruff.lint.mccabe]
max-complexity = 24
[tool.ruff.lint.pydocstyle]
convention = "numpy"