Skip to content
Prev Previous commit
Next Next commit
Lint: Validate that the PEP number matches the format in PEP 12
  • Loading branch information
CAM-Gerlach committed Mar 23, 2021
commit 8c93bfa6f1ee17d3156f390b9b39a2a054064759
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ repos:
args: ['--negate', '--multiline']
files: '^pep-\d+\.(rst|txt)$'
types: [text]
- id: validate-pep-number
name: "Validate PEP number field"
language: pygrep
entry: '(?-m:^PEP:(?:(?! +(0|[1-9][0-9]{0,3})\n)))'
args: ['--multiline']
files: '^pep-\d+\.(rst|txt)$'
types: [text]
- id: validate-created
name: "Validate created dates"
language: pygrep
Expand Down
2 changes: 1 addition & 1 deletion pep-0617.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PEP: 0617
PEP: 617
Title: New PEG parser for CPython
Version: $Revision$
Last-Modified: $Date$
Expand Down
2 changes: 1 addition & 1 deletion pep-0648.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PEP: 0648
PEP: 648
Title: Extensible customizations of the interpreter at startup
Author: Mario Corchero <mariocj89@gmail.com>
Sponsor: Pablo Galindo
Expand Down