forked from bnbong/FastAPI-fastkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (92 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
106 lines (92 loc) · 2.14 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
[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 = [
"pytest>=8.3.3",
"pytest-cov>=6.2.1",
"black>=24.10.0",
"pre-commit>=4.0.1",
"mypy>=1.12.0",
"isort>=5.13.2",
]
[project.scripts]
fastkit = "fastapi_fastkit.cli:fastkit_cli"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
version = { source = "file", path = "src/fastapi_fastkit/__init__.py" }
distribution = true
[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
[dependency-groups]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.15",
"mdx-include>=1.4.2",
]
[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"