-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (127 loc) · 3.68 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (127 loc) · 3.68 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "FastAPI-fastkit"
dynamic = ["version"]
description = "Fast, easy-to-use starter kit for new users of Python and FastAPI"
authors = [
{name = "bnbong", email = "bbbong9@gmail.com"},
]
dependencies = [
"click>=8.1.7",
"rich>=13.9.2",
"jinja2>=3.1",
]
requires-python = ">=3.12"
readme = "README.md"
license = {text = "MIT"}
[project.urls]
Homepage = "https://github.com/bnbong/FastAPI-kit"
Repository = "https://github.com/bnbong/FastAPI-kit"
Documentation = "https://bnbong.github.io/FastAPI-fastkit/"
Changelog = "https://bnbong.github.io/FastAPI-fastkit/changelog/"
[project.optional-dependencies]
dev = [
# Pinned minimums reflect Dependabot security advisories:
# pytest < 9.0.3 — tmpdir handling (GHSA)
# black < 26.3.1 — arbitrary file writes via cache file name
# pygments < 2.20.0 — ReDoS in GUID regex (transitive via rich)
"pytest>=9.0.3",
"pytest-cov>=6.2.1",
"black>=26.3.1",
"pre-commit>=4.0.1",
"mypy>=1.12.0",
"isort>=5.13.2",
"pygments>=2.20.0",
"types-pyyaml>=6.0.12.20260408",
]
[project.scripts]
fastkit = "fastapi_fastkit.cli:fastkit_cli"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
addopts = [
"--strict-markers",
"--strict-config",
"--disable-warnings",
]
# ``--strict-markers`` rejects any marker not declared here, so every custom
# marker used in the suite must be registered.
markers = [
"extended: slower end-to-end coverage, excluded from the fast feedback loop",
"slow: tests that shell out to real package managers or network services",
]
[tool.black]
target-version = ["py312"]
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.12"
strict = true
[[tool.mypy.overrides]]
module = "fastapi_fastkit.cli"
disable_error_code = ["func-returns-value"]
[[tool.mypy.overrides]]
module = "fastapi_fastkit.core"
ignore_missing_imports = true
check_untyped_defs = false
[tool.pdm]
version = { source = "file", path = "src/fastapi_fastkit/__init__.py" }
distribution = true
[dependency-groups]
docs = [
"mkdocs>=1.6.1",
# mkdocs-material < 9.7.7 — DOM XSS in the client-side search integration.
"mkdocs-material>=9.7.7",
"mdx-include>=1.4.2",
"mkdocs-static-i18n>=1.3.0",
"pyyaml>=6.0.3",
"types-PyYAML>=6.0.12.20250915",
# Security floors for transitive deps surfaced by Dependabot:
# pygments < 2.20.0 — ReDoS in GUID regex
# requests < 2.33.0 — insecure temp file reuse in extract_zipped_paths
# idna < 3.15 — quadratic complexity in IDNA decoding (transitive via requests)
"pygments>=2.20.0",
"requests>=2.33.0",
"idna>=3.15",
# pymdown-extensions <= 11.0.0 — ReDoS plus two path-traversal advisories;
# 10.17.2+ was already required because earlier releases crash on pygments
# 2.20+ (NoneType filename passed to html.escape), see pymdown-extensions#2580.
"pymdown-extensions>=11.0.1",
]
translation = [
"openai>=2.8.1",
"anthropic>=0.74.0",
]
[tool.coverage.run]
source = ["src/fastapi_fastkit"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/.*",
"*/venv/*",
"*/.venv/*",
"*/site-packages/*",
"*/fastapi_project_template/*",
"*/__main__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
precision = 2
fail_under = 70
[tool.coverage.html]
directory = "htmlcov"