-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (63 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
72 lines (63 loc) · 1.63 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
[project]
name = "fastapi-template"
dynamic = ["version"]
description = "A starter template for building backend applications with FastAPI, the high-performance Python web framework."
readme = "README.md"
requires-python = "==3.14.*"
license = "MIT"
license-files = ["LICENSE"]
dependencies = ["fastapi[standard]", "alembic", "asyncpg", "pydantic-settings"]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"testcontainers[postgres]",
"build",
"ruff",
"mypy",
]
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
local_scheme = "node-and-date"
[tool.ruff]
line-length = 120
extend-exclude = ["build", "dist", ".venv", "venv", ".mypy_cache"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes errors
"I", # isort
]
extend-select = [
"UP", # pyupgrade
"SIM", # code simplifications
"C4", # comprehension checks
"RET", # return practices
"PTH", # pathlib over os.path
]
ignore = [
"E203", # space before ':'
]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
error_summary = false
warn_unused_ignores = true
warn_redundant_casts = true
strict_optional = true
disallow_untyped_defs = true
no_implicit_optional = true
ignore_missing_imports = true
[tool.setuptools.packages.find]
where = ["app"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
filterwarnings = ["ignore::DeprecationWarning:testcontainers.*"]