File tree 4 files changed +8
-13
lines changed
4 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 38
38
language : python
39
39
additional_dependencies : [pygments, restructuredtext_lint]
40
40
- id : changelogs-rst
41
- name : changelog files must end in .rst
42
- entry : ./scripts/fail
43
- language : script
44
- files : ' changelog/.*(?<!\.rst)$'
41
+ name : changelog filenames
42
+ language : fail
43
+ entry : ' changelog files must be named ####.(feature|bugfix|doc|removal|vendor|trivial).rst'
44
+ exclude : changelog/(\d+\.(feature|bugfix|doc|removal|vendor|trivial).rst|README.rst|_template.rst)
45
+ files : ^changelog/
Original file line number Diff line number Diff line change
1
+ Improve pre-commit detection for changelog filenames
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ commands =
48
48
[testenv:linting]
49
49
skip_install = True
50
50
basepython = python3.6
51
- deps = pre-commit
51
+ deps = pre-commit>=1.11.0
52
52
commands = pre-commit run --all-files --show-diff-on-failure
53
53
54
54
[testenv:py27-xdist]
@@ -195,7 +195,7 @@ passenv = *
195
195
deps =
196
196
colorama
197
197
gitpython
198
- pre-commit
198
+ pre-commit>=1.11.0
199
199
towncrier
200
200
wheel
201
201
commands = python scripts/release.py {posargs}
You can’t perform that action at this time.
0 commit comments