Also disable end-of-file pre-commit checks, as bumpversion adds a
newline, see https://github.com/c4urself/bump2version/issues/58.
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,23 @@ |
1 |
+[bumpversion] |
|
2 |
+current_version = 0.1.0.dev0 |
|
3 |
+commit = True |
|
4 |
+tag = True |
|
5 |
+parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\d+))? |
|
6 |
+serialize = |
|
7 |
+ {major}.{minor}.{patch}.{release}{build} |
|
8 |
+ {major}.{minor}.{patch} |
|
9 |
+ |
|
10 |
+[bumpversion:part:release] |
|
11 |
+optional_value = prod |
|
12 |
+first_value = dev |
|
13 |
+values = |
|
14 |
+ dev |
|
15 |
+ prod |
|
16 |
+ |
|
17 |
+[bumpversion:part:build] |
|
18 |
+ |
|
19 |
+[bumpversion:file:qsim/__init__.py] |
|
20 |
+ |
|
21 |
+[bumpversion:file:CHANGELOG.md] |
|
22 |
+search = ## [unreleased] |
|
23 |
+replace = ## [{new_version}] |
... | ... |
@@ -8,7 +8,9 @@ repos: |
8 | 8 |
rev: v2.1.0 |
9 | 9 |
hooks: |
10 | 10 |
- id: end-of-file-fixer |
11 |
+ exclude: '.bumpversion.cfg' |
|
11 | 12 |
- id: trailing-whitespace |
13 |
+ exclude: '.bumpversion.cfg' |
|
12 | 14 |
# Disable this until 3.8.0 is released (as explained in |
13 | 15 |
# https://gitlab.com/pycqa/flake8/issues/450) |
14 | 16 |
#- repo: https://gitlab.com/pycqa/flake8 |