Skip to content

Commit

Permalink
Borrow tox checks for verifying change fragments (aio-libs#6169)
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored Oct 28, 2021
1 parent 5bb202a commit 41e9c7f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
repos:
- repo: local
hooks:
- id: changelogs-rst
name: changelog filenames
language: fail
entry: >-
Changelog files must be named
####.(bugfix|feature|removal|doc|misc)(.#)?(.rst)?
exclude: >-
^CHANGES/(\.TEMPLATE\.rst|\.gitignore|\d+\.(bugfix|feature|removal|doc|misc)(\.\d+)?(\.rst)?|README\.rst)$
files: ^CHANGES/
- id: changelogs-user-role
name: Changelog files should use a non-broken :user:`name` role
language: pygrep
entry: :user:([^`]+`?|`[^`]+[\s,])
pass_filenames: true
types: [file, rst]
- id: check-changes
name: Check CHANGES
language: system
Expand Down

0 comments on commit 41e9c7f

Please sign in to comment.