Skip to content

Commit 3be29c8

Browse files
committed
Exclude .bumpversion.cfg from pre-commit checks
When creating new versions, the file is written back by `ConfigParser`. Unfortunately, that includes trailing whitespace in some scenarios. Exclude it from pre-commit checks as we have no way to guarantee its formatting except that it's semantically correct for `ConfigParser`.
1 parent bad7703 commit 3be29c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exclude: (\.git/|\.tox/|\.venv/|build/|static/|dist/|node_modules/)
1+
exclude: (\.git/|\.tox/|\.venv/|\.bumpversion.cfg$|build/|static/|dist/|node_modules/)
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
44
rev: v2.0.0

0 commit comments

Comments
 (0)