-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
201 lines (182 loc) · 5.91 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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[project]
name = "pdm-bump"
version = "0.9.10"
readme = "README.md"
description = "A plugin for PDM providing the ability to modify the version according to PEP440"
license-files = ["LICENSE"]
license = "MIT"
authors = [
{ name = "Carsten Igel", email = "cig@bite-that-bit.de" },
]
dependencies = [
"pdm>=2.00",
"annotated-types>=0.2.0",
"typing-extensions>=4; python_version<='3.9'",
"tomlkit>=0.11.6",
"tomli>=2.0.1; python_version<='3.10'",
"pyproject-metadata>=0.6.1",
"pdm-pfsc>=0.12.2",
]
requires-python = ">=3.9"
[project.urls]
homepage = "https://github.com/carstencodes/pdm-bump"
[project.entry-points.pdm]
pdm-bump = "pdm_bump:main"
[build-system]
requires = [
"pdm-backend",
]
build-backend = "pdm.backend"
[tool.pdm]
plugins = [
"-e file:///${PROJECT_ROOT}",
]
[tool.pdm.dev-dependencies]
test = [
"pytest>=7.1.2",
"tox>=3.25.1",
"tox-pdm>=0.6.0",
"pytest-cov>=3.0.0",
]
formatting = [
"black>=22.6.0",
"isort>=5.10.1",
"licenseheaders>=0.8.8",
"autoflake>=2.0.2",
"pyment>=0.3.3",
]
release = [
"gitlint>=0.17.0",
"pip-audit>=2.4.4",
]
static-code-analysis = [
"radon>=5.1.0",
"vulture>=2.7",
"bandit>=1.7.4",
"prospector>=0.12.2",
]
checkstyle = [
"flake8>=3.9.2",
"flake518>=1.2.3",
"mypy>=0.971",
"pylint>=2.14.5",
"pycodestyle>=2.7.0",
"pep8-naming>=0.13.3",
"flake8-type-checking>=2.9.1",
]
[tool.pdm.scripts]
flake = "flake518 src/"
mypy = "mypy src/"
pylint = "pylint src/"
isort = "isort src/"
black = "black src/"
unimport = "unimport src/"
autoflake = "autoflake --ignore-pass-statements --remove-all-unused-imports --in-place --recursive src"
radon_cc = "radon cc --total-average --show-complexity --json --output-file radon.cc.json src/"
radon_mi = "radon mi --show --json --output-file radon.mi.json src/"
radon_hal = "radon hal --functions --json --output-file radon.hal.json src/"
vulture = "vulture src/"
bandit = "bandit src/"
prospector = "prospector src/"
copyright-headers = "licenseheaders -y 2021-2023 -o 'Carsten Igel' -n pdm-bump -d . -u https://github.com/carstencodes/pdm-bump -x src/pdm_bump/dynamic.py -t ./.licenseheader.j2 -E .py"
[tool.pdm.scripts.check-style]
composite = [
"flake",
"pylint",
"mypy",
]
[tool.pdm.scripts.format]
composite = [
"copyright-headers",
"isort",
"black",
"autoflake",
]
[tool.pdm.scripts.radon]
composite = [
"radon_cc",
"radon_mi",
"radon_hal",
]
[tool.pdm.scripts.static-analysis]
composite = [
"radon",
"vulture",
"bandit",
"prospector",
]
[tool.pdm.scripts.check-commits]
shell = "gitlint --commits $(git describe --tags --abbrev=0)..HEAD lint"
[tool.black]
line-length = 79
target-version = [
"py39",
]
[tool.pylint.MAIN]
fail-under = 9
ignore = "vcs"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"C0112",
"R0901",
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
junit_suite_name = "pdm-bump"
pythonpath = [
"src",
]
minversion = "7.0.0"
addopts = [
"--cache-clear",
"--junit-xml",
"pytest.result.xml",
"--cov=src",
"--cov-branch",
"--cov-report",
"xml:pytest.coverage.xml",
"--cov-report",
"term",
]
filterwarnings = [
"ignore::DeprecationWarning ",
]
[tool.tox]
legacy_tox_ini = "[tox]\nminversion = 3.25.0\nrequires = tox-pdm\nskip_missing_interpreters = false\nenvlist = py{39, 310, 311, 312}\nisolated_build = true\nskipsdist = true\n\n\n[testenv]\nsetenv =\n PDM_IGNORE_SAVED_PYTHON=\"1\"\nallowlist_externals =\n mv\n mkdir\n pytest\n pdm\n python\ndeps = pdm\nrecreate = true\npassenv =\n PYTHONPATH\ncommands =\n pdm install --dev\n pytest\ncommands_pre =\n mkdir -p {toxinidir}/results/{envname}\ncommands_post =\n mv {toxinidir}/pytest.result.xml {toxinidir}/pytest.coverage.xml {toxinidir}/results/{envname}/\n"
[tool.git-cliff.changelog]
header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\n"
body = "{% if version %}## Changelog for release {{ version | trim_start_matches(pat=\"v\") }}\n{% else %}## [unreleased]\n{% endif %}Released on {{ timestamp | date(format=\"%Y-%m-%d\") }}\n\n{% for group, commits in commits | group_by(attribute=\"group\") %}\n ### {{ group | upper_first }}\n {% for commit in commits %}\n - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} by {{ commit.author.name }} [{{ commit.id| truncate(length=7, end=\"\")}}](https://github.com/carstencodes/pdm-bump/commit/{{ commit.id }}){% endfor %}\n{% endfor %}\n\n{% if version %}{% if previous %}**Full changelog**: [{{ previous.version }}...{{ version }}](https://github.com/carstencodes/pdm-bump/compare/{{ previous.version }}...{{ version }})\n{% endif %}\n\n{% endif %}"
trim = true
footer = "<!-- generated by git-cliff -->\n"
[tool.git-cliff.git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^docs", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactored" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^qa", group = "Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^ci", group = "Integration Tasks" },
{ message = "^build", group = "Build recipes" },
{ message = "^chore", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]
protect_breaking_commits = false
filter_commits = false
tag_pattern = "v[0-9]*"
skip_tags = "v0.1.0-beta.1"
ignore_tags = ""
date_order = false
sort_commits = "oldest"
[[tool.git-cliff.git.commit_preprocessors]]
pattern = "\\((\\w+\\s)?#([0-9]+)\\)"
replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"