Enforce news/*.{correct-kind}.rst naming

This commit is contained in:
Pradyun Gedam 2020-04-26 20:40:25 +05:30 committed by Pradyun Gedam
parent 8aab76c63f
commit c5744d5643
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
1 changed files with 11 additions and 4 deletions

View File

@ -85,11 +85,18 @@ repos:
- id: python-no-log-warn
- id: python-no-eval
- id: rst-backticks
# Validate existing ReST files and NEWS fragments.
files: .*\.rst$|^news/.*
files: .*\.rst$
types: [file]
# The errors flagged in NEWS.rst are old.
exclude: NEWS.rst
exclude: NEWS.rst # The errors flagged in NEWS.rst are old.
- repo: local
hooks:
- id: news-fragment-filenames
name: NEWS fragment
language: fail
entry: NEWS fragment files must be named *.(process|removal|feature|bugfix|vendor|doc|trivial).rst
exclude: ^news/(.gitignore|.*\.(process|removal|feature|bugfix|vendor|doc|trivial).rst)
files: ^news/
- repo: https://github.com/mgedmin/check-manifest
rev: '0.43'