Skip to content

Commit eae06d9

Browse files
committed
add tox.ini settings for bumpversion
1 parent 5670131 commit eae06d9

File tree

2 files changed

+53
-4
lines changed

2 files changed

+53
-4
lines changed

release.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
"dryRun": false,
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/changelog",
8+
{
9+
"changelogFile": "CHANGELOG.md"
10+
}
11+
],
12+
"@semantic-release/github",
13+
[
14+
"@semantic-release/git",
15+
{
16+
"assets": [
17+
"CHANGELOG.md"
18+
],
19+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
20+
}
21+
]
22+
]
23+
};

tox.ini

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,41 @@
44
envlist = py3.11,flake8
55
skip_missing_interpreters = true
66

7+
[gh-actions]
8+
python =
9+
3.8: gitlint,py38,flake8
10+
3.9: gitlint,py39,flake8
11+
3.10: gitlint,py310,flake8
12+
3.11: gitlint,py311,flake8
13+
714
[testenv]
815
deps = -rrequirements.txt
916
commands = pytest
1017

11-
[testenv:flake8]
12-
deps = flake8
13-
commands = flake8
14-
1518
[flake8]
1619
ignore = D205,D400,D401,D403,D413
1720
max-line-length =120
1821
max-complexity = 10
22+
23+
[testenv:flake8]
24+
skip_install = True
25+
deps = flake8
26+
commands = flake8
27+
28+
[testenv:gitlint]
29+
skip_install = True
30+
deps = gitlint
31+
commands = gitlint {posargs}
32+
33+
[testenv:bumpversion]
34+
skip_install = True
35+
passenv =
36+
# Git can only find its global configuration if it knows where the
37+
# user's HOME is.
38+
HOME
39+
# We set sign_tags in .bumpversion.cfg, so pass in the GnuPG agent
40+
# reference to avoid having to retype the passphrase for an
41+
# already-cached private key.
42+
GPG_AGENT_INFO
43+
deps = bump2version
44+
commands = bump2version {posargs}

0 commit comments

Comments
 (0)