-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
137 lines (126 loc) · 2.77 KB
/
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
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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools==75.6.0",
"setuptools-scm==8.1.0",
]
[project]
name = "ss-python"
description = "A Python Project Template for Long-Term Maintainability."
readme = "README.md"
keywords = [
"copier-template",
"full-development-lifecycle",
"project-template",
"serious-scaffold",
]
license = { text = "MIT" }
authors = [
{ email = "[email protected]", name = "huxuan" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
]
dependencies = [
"click",
"pydantic-settings",
]
urls.documentation = "https://serious-scaffold.github.io/ss-python"
urls.issue = "https://github.com/serious-scaffold/ss-python/issues"
urls.repository = "https://github.com/serious-scaffold/ss-python"
scripts.ss-python-cli = "ss_python.cli:cli"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
doc = [
"Sphinx",
"autodoc-pydantic",
"coverage",
"furo",
"mypy[reports]",
"myst-parser",
"pytest",
"sphinx-click",
"sphinx-design",
]
lint = [
"mypy",
]
test = [
"coverage",
"pytest",
]
[tool.setuptools_scm]
fallback_version = "0.0.0"
[tool.ruff]
src = [
"src",
]
extend-exclude = [
"template",
]
fix = true
lint.select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"RUF100", # Unused noqa directive
"S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warning
]
lint.per-file-ignores."tests/*" = [
"S101",
]
lint.pydocstyle.convention = "google"
[tool.codespell]
write-changes = true
check-filenames = true
[tool.pyproject-fmt]
indent = 4
keep_full_version = true
max_supported_python = "3.13"
[tool.pytest.ini_options]
addopts = "-l -s --durations=0"
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_format = "%(asctime)s %(levelname)s %(message)s"
minversion = "6.0"
[tool.coverage.report]
fail_under = 100
[tool.coverage.run]
source = [
"ss_python",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
enable_error_code = [
"ignore-without-code",
]
exclude = [
"build",
"doc",
"template",
]
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true