Skip to content

Commit

Permalink
Enforce news/*.{correct-kind}.rst naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Oct 3, 2020
1 parent 8aab76c commit c5744d5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c5744d5

Please sign in to comment.