-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (156 loc) · 5.77 KB
/
pyproject.toml
File metadata and controls
186 lines (156 loc) · 5.77 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[project]
name = "manageprojects"
dynamic = ["version"]
description = "Manage Python / Django projects"
license = {text = "GPL-3.0-or-later"}
readme = "README.md"
authors = [
{name = 'Jens Diemer', email = 'mamageprojects@jensdiemer.de'}
]
requires-python = ">=3.12"
dependencies = [
"cookiecutter>=2.4.0", # https://github.com/cookiecutter/cookiecutter
"tomlkit",
"EditorConfig", # https://github.com/editorconfig/editorconfig-core-py
# https://github.com/akaihola/darker
# "darker", # Use darker after v3 release, see: https://github.com/akaihola/darker/milestones
# https://github.com/astral-sh/ruff
"ruff",
"codespell", # https://github.com/codespell-project/codespell
"ty", # https://docs.astral.sh/ty/
"cli-base-utilities>=0.27.1", # https://github.com/jedie/cli-base-utilities
"tyro", # https://github.com/brentyi/tyro
"rich", # https://github.com/Textualize/rich
]
[dependency-groups]
dev = [
"python-gnupg", # https://github.com/vsajip/python-gnupg
"bx_py_utils", # https://github.com/boxine/bx_py_utils
"urllib3", # for deny_requests.deny_any_real_request() in tests
"uv", # https://github.com/astral-sh/uv
"hatchling", # https://github.com/pypa/hatch/tree/master/backend
"nox", # https://github.com/wntrblm/nox
"coverage", # https://github.com/nedbat/coveragepy
"EditorConfig", # https://github.com/editorconfig/editorconfig-core-py
"pip-audit", # https://github.com/pypa/pip-audit
"twine", # https://github.com/pypa/twine
"pre-commit", # https://github.com/pre-commit/pre-commit
"typeguard", # https://github.com/agronholm/typeguard/
]
[tool.uv]
# Don't install bleed-edge versions of dependencies, to avoid undetected issues and supply chain attacks.
exclude-newer = "1 week"
# Exclude own packages from the "exclude-newer" rule and
# add external packages temporarily to fix known issues or current CVEs
# TODO: Remove requests - v2.33.0 fixed CVE-2026-25645
exclude-newer-package = { requests = "2026-03-25T18:00:00Z", cryptography="2026-03-27T00:00:00Z" }
[tool.cli_base.pip_audit]
strict=true
require_hashes=true
ignore-vuln=[
"CVE-2026-4539", # https://github.com/pygments/pygments/issues/3058#issuecomment-4127344972
]
[tool.cli_base]
version_module_name = "manageprojects" # Used by "update-readme-history" git hook
[project.urls]
Documentation = "https://github.com/jedie/manageprojects"
Source = "https://github.com/jedie/manageprojects"
[project.scripts]
manageprojects = "manageprojects.__main__:main"
[tool.bx_py_utils.doc_write]
docstring_prefix = 'DocWrite:'
macro_prefix = 'DocWriteMacro:'
output_base_path = './docs/'
search_paths = ['./manageprojects/']
delete_obsolete_files = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["manageprojects"]
[tool.hatch.version]
path = "manageprojects/__init__.py"
[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
line-length = 120
exclude = [
".*/",
]
[tool.ruff.lint]
preview = true # Needed for some of the rules
extend-select = [
"E", # pycodestyle: https://docs.astral.sh/ruff/rules/#error-e
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
]
ignore = [
"E402", # https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file/
"E731", # https://docs.astral.sh/ruff/rules/lambda-assignment/
]
[tool.ruff.lint.isort]
# https://docs.astral.sh/ruff/settings/#lintisort
lines-after-imports = 2
[tool.ruff.format]
quote-style = "single"
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing"]
source = ['.']
command_line = '-m unittest --verbose --locals --buffer'
[tool.coverage.report]
omit = ['.*', '*/tests/*', 'noxfile.py']
skip_empty = true
fail_under = 30
show_missing = true
exclude_lines = [
'if self.debug:',
'pragma: no cover',
'raise NotImplementedError',
'if __name__ == .__main__.:',
]
[tool.ty.src] # https://docs.astral.sh/ty/configuration/
include = ["."]
exclude = ["**/.venv/**", "**/__pycache__/**"]
[manageprojects] # https://github.com/jedie/manageprojects
initial_revision = "8438598"
initial_date = 2022-11-20T20:01:37+01:00
cookiecutter_template = "https://github.com/jedie/cookiecutter_templates"
cookiecutter_directory = "uv-python"
applied_migrations = [
"cf44769", # 2023-01-11T08:15:06+01:00
"cd164cd", # 2023-02-18T11:55:57+01:00
"d970456", # 2023-02-20T16:19:35+01:00
"80d0a0c", # 2023-03-06T17:52:14+01:00
"04d5a25", # 2023-03-07T16:25:36+01:00
"be96b03", # 2023-03-17T08:17:11+01:00
"588caaa", # 2023-04-04T15:40:44+02:00
"00fbc5d", # 2023-04-07T12:35:09+02:00
"39b7eab", # 2023-04-10T18:48:00+02:00
"034be26", # 2023-08-05T21:37:12+02:00
"8d0ebe1", # 2023-08-17T18:15:10+02:00
"be3f649", # 2023-08-22T19:36:57+02:00
"385f654", # 2023-10-08T21:09:24+02:00
"d1ed4b1", # 2023-12-01T21:41:29+01:00
"c538ae7", # 2023-12-21T20:21:58+01:00
"7271d4c", # 2023-12-29T21:57:47+01:00
"f8be3e0", # 2024-07-16T19:35:26+02:00
"2cdc1d8", # 2024-08-25T19:00:41+02:00
"56c3caa", # 2024-09-22T16:52:30+02:00
"ff48b81", # 2024-11-09T19:08:01+01:00
"38129ec", # 2025-02-12T17:41:38+01:00
"9c976dd", # 2025-09-04T16:33:51+02:00
"4d9f75b", # 2025-10-13T12:11:18+02:00
"b5ec83f", # 2026-01-25T20:17:13+01:00
"3876500", # 2026-03-26T19:19:21+01:00
]
[manageprojects.cookiecutter_context.cookiecutter]
full_name = "Jens Diemer"
github_username = "jedie"
author_email = "mamageprojects@jensdiemer.de"
package_name = "manageprojects"
package_version = "0.3.2"
package_description = "Manage Python / Django projects"
package_url = "https://github.com/jedie/manageprojects"
issues_url = "https://github.com/jedie/manageprojects/issues"
license = "GPL-3.0-or-later"
_template = "https://github.com/jedie/cookiecutter_templates"