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: Validate Python-Version field, conform PEPs and fix typos
  • Loading branch information
CAM-Gerlach committed Mar 23, 2021
commit d8ccf1e5d6c9e6c98f1f30ae08024c7b02740528
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ repos:
entry: '^Created:(?:(?! +([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9])( \([^()]+\))?$))'
files: '^pep-\d+\.(rst|txt)$'
types: [text]
- id: validate-python-version
name: "Validate PEP Python-Version field"
language: pygrep
entry: '^Python-Version:(?:(?! +( ?[1-9]\.([0-9][0-9]?|x)(\.[1-9][0-9]?)?\??,?)+( \([^()]+\))?$))'
files: '^pep-\d+\.(rst|txt)$'
types: [text]
1 change: 0 additions & 1 deletion pep-0316.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Status: Deferred
Type: Standards Track
Content-Type: text/x-rst
Created: 02-May-2003
Python-Version:
Post-History:


Expand Down
2 changes: 1 addition & 1 deletion pep-0328.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 21-Dec-2003
Python-Version: 2.4, 2,5, 2.6
Python-Version: 2.4, 2.5, 2.6
Post-History: 8-Mar-2004


Expand Down
2 changes: 1 addition & 1 deletion pep-0361.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status: Final
Type: Informational
Content-Type: text/x-rst
Created: 29-Jun-2006
Python-Version: 2.6 and 3.0
Python-Version: 2.6, 3.0
Post-History: 17-Mar-2008


Expand Down
2 changes: 1 addition & 1 deletion pep-0371.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 06-May-2008
Python-Version: 2.6 / 3.0
Python-Version: 2.6, 3.0
Post-History:


Expand Down
2 changes: 1 addition & 1 deletion pep-0378.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 12-Mar-2009
Python-Version: 2.7 and 3.1
Python-Version: 2.7, 3.1
Post-History: 12-Mar-2009


Expand Down
1 change: 0 additions & 1 deletion pep-0381.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Status: Withdrawn
Type: Standards Track
Content-Type: text/x-rst
Created: 21-Mar-2009
Python-Version: N.A.
Post-History:


Expand Down
2 changes: 1 addition & 1 deletion pep-0389.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 25-Sep-2009
Python-Version: 2.7 and 3.2
Python-Version: 2.7, 3.2
Post-History: 27-Sep-2009, 24-Oct-2009


Expand Down
2 changes: 1 addition & 1 deletion pep-0390.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Status: Rejected
Type: Standards Track
Content-Type: text/x-rst
Created: 10-Oct-2009
Python-Version: 2.7 and 3.2
Python-Version: 2.7, 3.2
Post-History:
Resolution: https://mail.python.org/pipermail/distutils-sig/2013-April/020597.html

Expand Down
2 changes: 1 addition & 1 deletion pep-0412.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 08-Feb-2012
Python-Version: 3.3 or 3.4
Python-Version: 3.3
Post-History: 08-Feb-2012


Expand Down
2 changes: 1 addition & 1 deletion pep-3118.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 28-Aug-2006
Python-Version: 3000
Python-Version: 3.0
Post-History:

Abstract
Expand Down
2 changes: 1 addition & 1 deletion pep-3128.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Status: Rejected
Type: Standards Track
Content-Type: text/x-rst
Created: 30-Apr-2007
Python-Version: 2.6 and/or 3.0
Python-Version: 2.6, 3.0
Post-History: 30-Apr-2007


Expand Down
0