Skip to content

Commit d613716

Browse files
committed
chore(pre-commit): add local hook for NEWS fragment file naming convention
1 parent 9c94e09 commit d613716

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
repos:
2+
- repo: local
3+
hooks:
4+
- id: news-fragment-filenames
5+
name: NEWS fragment
6+
language: fail
7+
entry: NEWS fragment files must be named *.(removal|feature|bugfix|doc|misc).rst
8+
exclude: ^news/(.gitignore|.template.rst.jinja2|.*\.(removal|feature|bugfix|doc|misc).rst)
9+
files: ^news/
10+
211
- repo: https://github.com/pre-commit/pre-commit-hooks
312
rev: v5.0.0
413
hooks:
File renamed without changes.

0 commit comments

Comments
 (0)