2021-06-17 07:12:58 +00:00
|
|
|
github_url = "https://github.com/PyCQA/pylint"
|
|
|
|
|
|
|
|
[version]
|
2021-09-14 08:31:58 +00:00
|
|
|
current = "3.0.0a6"
|
2021-06-17 07:12:58 +00:00
|
|
|
regex = '''
|
|
|
|
^(?P<major>0|[1-9]\d*)
|
|
|
|
\.
|
|
|
|
(?P<minor>0|[1-9]\d*)
|
|
|
|
\.
|
|
|
|
(?P<patch>0|[1-9]\d*)
|
2023-01-13 20:50:31 +00:00
|
|
|
(?:-?(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
2021-06-17 07:12:58 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
[git]
|
|
|
|
message_template = "Bump pylint to {new_version}, update changelog"
|
|
|
|
tag_template = "v{new_version}"
|
|
|
|
|
|
|
|
# For each file to patch, add a [[file]] config
|
|
|
|
# section containing the path of the file, relative to the
|
|
|
|
# tbump.toml location.
|
|
|
|
[[file]]
|
|
|
|
src = "pylint/__pkginfo__.py"
|
|
|
|
|
|
|
|
# You can specify a list of commands to
|
|
|
|
# run after the files have been patched
|
|
|
|
# and before the git commit is made
|
|
|
|
[[before_commit]]
|
|
|
|
name = "Upgrade changelog"
|
|
|
|
cmd = "python3 script/bump_changelog.py {new_version}"
|
|
|
|
|
2022-02-07 22:38:04 +00:00
|
|
|
[[before_commit]]
|
|
|
|
name = "Upgrade and check doc"
|
|
|
|
cmd = "tox -e docs||echo 'Hack so this command does not fail'"
|
|
|
|
|
2022-04-13 08:08:07 +00:00
|
|
|
[[before_commit]]
|
|
|
|
name = "Upgrade the pylintrc examples"
|
|
|
|
cmd = "pylint --rcfile=/dev/null --generate-rcfile > examples/pylintrc"
|
|
|
|
|
2022-05-10 09:18:32 +00:00
|
|
|
[[before_commit]]
|
|
|
|
name = "Upgrade the toml examples"
|
|
|
|
cmd = "pylint --rcfile=/dev/null --generate-toml-config > examples/pyproject.toml"
|
|
|
|
|
2022-03-21 16:48:20 +00:00
|
|
|
[[before_commit]]
|
|
|
|
name = "Normalize the contributors-txt configuration"
|
|
|
|
cmd = "contributors-txt-normalize-configuration -a script/.contributors_aliases.json -o script/.contributors_aliases.json"
|
|
|
|
|
|
|
|
[[before_commit]]
|
|
|
|
name = "Upgrade the contributors list"
|
|
|
|
cmd = "python3 script/create_contributor_list.py"
|
|
|
|
|
2021-06-17 07:12:58 +00:00
|
|
|
[[before_commit]]
|
|
|
|
name = "Apply pre-commit"
|
|
|
|
cmd = "pre-commit run --all-files||echo 'Hack so this command does not fail'"
|
|
|
|
|
2022-10-23 17:15:31 +00:00
|
|
|
[[before_commit]]
|
|
|
|
name = "Confirm changes"
|
|
|
|
cmd = "read -p 'Continue (y)? ' -n 1 -r; echo; [[ ! $REPLY =~ ^[Yy]$ ]] && exit 1 || exit 0"
|
|
|
|
|
2021-06-17 07:12:58 +00:00
|
|
|
# Or run some commands after the git tag and the branch
|
|
|
|
# have been pushed:
|
|
|
|
# [[after_push]]
|
|
|
|
# name = "publish"
|
|
|
|
# cmd = "./publish.sh"
|