summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2018-08-01 15:21:34 -0700
committerAnthony Sottile <asottile@umich.edu>2018-08-01 15:22:43 -0700
commita80e031c629b80ee6921482bbb8aa13764a3068b (patch)
tree6bc1313b9d085b4ad1c3381686bc0ea409c6e89c /.pre-commit-config.yaml
parentf25683354e95ea13801e4984873bbf3352b97ff1 (diff)
downloadpytest-a80e031c629b80ee6921482bbb8aa13764a3068b.tar.gz
Enforce that changelog files are .rst
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 635d8452f..bac8bb6e2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,3 +38,8 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
python_version: python3.6
+ - id: changelogs-rst
+ name: changelog files must end in .rst
+ entry: ./scripts/fail
+ language: script
+ files: 'changelog/.*(?<!\.rst)$'