From a80e031c629b80ee6921482bbb8aa13764a3068b Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 1 Aug 2018 15:21:34 -0700 Subject: [PATCH] Enforce that changelog files are .rst --- .pre-commit-config.yaml | 5 +++++ changelog/{3745.bugfix => 3745.bugfix.rst} | 0 scripts/fail | 7 +++++++ 3 files changed, 12 insertions(+) rename changelog/{3745.bugfix => 3745.bugfix.rst} (100%) create mode 100755 scripts/fail 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/.*(?