-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (90 loc) · 1.91 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (90 loc) · 1.91 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
[project]
name = "template"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.116.0",
"pydantic-settings>=2.10.1",
"pydantic>=2.11.7",
"uvicorn>=0.35.0",
"alembic>=1.16.3",
"sqlalchemy>=2.0.41",
"asyncpg>=0.30.0",
"greenlet>=3.2.3",
"loguru>=0.7.3",
"pytest-asyncio>=1.1.0",
]
[dependency-groups]
dev = [
"mypy>=1.16.1",
"poethepoet>=0.36.0",
"pytest>=8.4.1",
"ruff>=0.12.2",
]
[tool.mypy]
plugins = [
"pydantic.mypy",
]
disallow_untyped_defs = false
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
[tool.ruff]
exclude = ["alembic"]
# match black
line-length = 120
target-version = "py311"
lint.select = [
"E4", "E7", "E9", "F"
]
lint.ignore = [
#### modules
"ANN", # flake8-annotations
"COM", # flake8-commas
"C90", # mccabe complexity
"DJ", # django
"EXE", # flake8-executable
"T10", # debugger
"TID", # flake8-tidy-imports
#### specific rules
"D100", # ignore missing docs
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D205",
"D203",
"D212",
"D400",
"D401",
"D415",
"E402", # false positives for local imports
"E501", # line too long
"TRY003", # external messages in exceptions are too verbose
"TD002",
"TD003",
"FIX002", # too verbose descriptions of todos
"Q000",
"Q003"
]
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.poe.tasks]
poe_ruff_check = " uv run ruff check ."
poe_ruff_format = " uv run ruff format ."
poe_mypy = "uv run mypy ."
lint = ["poe_ruff_check", "poe_ruff_format", "poe_mypy"]
[tool.pytest.ini_options]
asyncio_mode="auto"