-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
64 lines (52 loc) · 1.48 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
[tool.poetry]
name = "fastapi-template"
version = "0.1.0"
description = "Template for a FastAPI project with Poetry, SQLAlchemy, Alembic and Docker"
authors = ["ItsZcx <[email protected]>"]
readme = "README.md"
package-mode = false
# Add production dependencies (ex: poetry add 'fastapi[standard]')
# Add dev dependencies (ex: poetry add ruff --group=dev)
[tool.poetry.dependencies]
python = "^3.10"
psycopg2-binary = "^2.9.9"
fastapi = {extras = ["standard"], version = "^0.115.0"}
sqlalchemy = "^2.0.35"
alembic = "^1.13.2"
pydantic-settings = "^2.5.2"
pydantic = "^2.9.2"
[tool.poetry.group.dev.dependencies]
ruff = "^0.6.5"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
#==================================#
# 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