Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (57 loc) · 1.51 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (57 loc) · 1.51 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
[project]
name = "fastapi-template"
version = "0.1.0"
description = "Template for a FastAPI project with UV, SQLAlchemy, Alembic and Docker"
readme = "README.md"
authors = [{ name = "ItsZcx", email = "joanpaumeridaruiz@gmail.com" }]
requires-python = ">=3.10"
dependencies = [
"alembic>=1.13.2,<2.0.0",
"fastapi[standard]>=0.141.0",
"psycopg2-binary>=2.9.9,<3.0.0",
"pydantic>=2.9.2,<3.0.0",
"pydantic-settings>=2.5.2,<3.0.0",
"pyjwt>=2.13.0,<3.0.0",
"slowapi>=0.1.10,<0.2.0",
"sqlalchemy>=2.0.35,<3.0.0",
"structlog>=26.1.0,<27.0.0",
]
[dependency-groups]
dev = [
"pre-commit>=4.6.2,<5.0.0",
"pytest>=9.1.1,<10.0.0",
"ruff>=0.6.5,<0.7.0",
]
#==================================#
# Custom ruff settings #
#==================================#
[tool.ruff]
# Inherit exclude patterns from ruff.toml
extend-exclude = [".venv", ".env", "alembic"]
# Other settings from ruff.toml
fix = true
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.format]
preview = false
line-ending = "lf"
quote-style = "double"
indent-style = "space"
docstring-code-format = true
docstring-code-line-length = 110
skip-magic-trailing-comma = false
[tool.ruff.lint]
fixable = ["ALL"]
ignore = []
preview = false
extend-ignore = []
extend-fixable = []
allowed-confusables = []
explicit-preview-rules = false
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
force-single-line = true
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]