-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (112 loc) · 2.98 KB
/
pyproject.toml
File metadata and controls
128 lines (112 loc) · 2.98 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
[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",
]
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",
]
[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",
]
[tool.isort]
profile = "black"
[tool.mypy]
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.6.15",
"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
"pygments>=2.20.0",
"requests>=2.33.0",
# pymdown-extensions < 10.17.2 crashes on pygments 2.20+ (NoneType filename
# passed to html.escape); see pymdown-extensions#2580.
"pymdown-extensions>=10.17.2",
]
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"