-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
47 lines (41 loc) · 989 Bytes
/
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
[project]
name = "fastapi-api-template"
description = "Fastapi api template"
readme = "README.md"
requires-python = ">= 3.12"
[tool.isort]
profile = "black"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E203", # whitespace-before-punctuation
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"E402", # module-import-not-at-top-of-file
"F401" # Module imported but unused
]
[tool.ruff.lint.isort]
known-third-party = ["fastapi", "pydantic", "starlette"]
[tool.mypy]
# strict = true
warn_unused_ignores = true
ignore_missing_imports = true
plugins = "pydantic.mypy"
[tool.coverage.report]
show_missing = true
fail_under = 95
exclude_lines = [
"def __repr__",
"if TYPE_CHECKING:",
]