From 826adafe2ec2d4fb531f83e2645fb44847e34844 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 7 Sep 2018 09:32:36 -0700 Subject: [PATCH] Improve pre-commit detection for changelog filenames --- .pre-commit-config.yaml | 9 +++++---- changelog/3955.trivial.rst | 1 + scripts/fail | 7 ------- tox.ini | 4 ++-- 4 files changed, 8 insertions(+), 13 deletions(-) create mode 100644 changelog/3955.trivial.rst delete mode 100755 scripts/fail diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index faae82372..f0340fb9d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,8 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] - id: changelogs-rst - name: changelog files must end in .rst - entry: ./scripts/fail - language: script - files: 'changelog/.*(?=1.11.0 commands = pre-commit run --all-files --show-diff-on-failure [testenv:py27-xdist] @@ -195,7 +195,7 @@ passenv = * deps = colorama gitpython - pre-commit + pre-commit>=1.11.0 towncrier wheel commands = python scripts/release.py {posargs}