Skip to content

Commit

Permalink
Add a better description to the Resolution lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jun 27, 2022
1 parent dc35bc4 commit d39a54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ repos:
types: [text]

- id: validate-resolution
name: "'Resolution' must be a direct thread/message URL"
name: "'Resolution' must be a direct thread/message URL and the final header"
language: pygrep
entry: '(?<!\n\n)(?<=\n)Resolution: (?:(?!https://((discuss\.python\.org/t/([\w\-]+/)?\d+(/\d+)?/?)|(mail\.python\.org/pipermail/[\w\-]+/\d{4}-[A-Za-z]+/[A-Za-z0-9]+\.html)|(mail\.python\.org/archives/list/[\w\-]+@python\.org/(message|thread)/[A-Za-z0-9]+/?(#[A-Za-z0-9]+)?))\n(?=\n)))'
args: ['--multiline']
Expand Down

0 comments on commit d39a54b

Please sign in to comment.