8000 Lint: Validate PEP fields against PEP 12 by CAM-Gerlach · Pull Request #1890 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

Lint: Validate PEP fields against PEP 12 #1890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 23, 2021
Prev Previous commit
Next Next commit
Lint: Check that the PEP references fields contain valid PEP numbers
  • Loading branch information
CAM-Gerlach committed Mar 23, 2021
commit a3f96b4122246994f4ece858523e8069579221f2
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ repos:
entry: '^Content-Type:(?:(?! +text\/x-rst$))'
files: '^pep-\d+\.(rst|txt)$'
types: [text]
- id: validate-pep-references
name: "Validate PEP reference fields"
language: pygrep
entry: '^(Requires|Replaces|Superseded-By):(?:(?! +( ?(0|[1-9][0-9]{0,3}),?)+$))'
files: '^pep-\d+\.(rst|txt)$'
types: [text]
- id: validate-created
name: "Validate created dates"
language: pygrep
Expand Down
0