Skip to content
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

Lint: Normalise whitespace, remove the Emacs stanza, remove unneeded headers #4081

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/Mark a PEP Final.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ If you're unsure about something, just leave it blank and we'll take a look.
* [ ] Any substantial changes since the accepted version approved by the SC/PEP delegate
* [ ] Pull request title in appropriate format (``PEP 123: Mark Final``)
* [ ] ``Status`` changed to ``Final`` (and ``Python-Version`` is correct)
* [ ] Canonical docs/spec linked with a ``canonical-doc`` directive
* [ ] Canonical docs/spec linked with a ``canonical-doc`` directive
(or ``canonical-pypa-spec`` for packaging PEPs,
or ``canonical-typing-spec`` for typing PEPs)
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ repos:
- id: mixed-line-ending
name: "Normalize mixed line endings"
args: [--fix=lf]
- id: end-of-file-fixer
name: "Ensure files end with a single newline"
- id: trailing-whitespace
name: "Remove trailing whitespace"

- id: file-contents-sorter
name: "Sort codespell ignore list"
files: '.codespell/ignore-words.txt'
Expand Down
2 changes: 1 addition & 1 deletion pep_sphinx_extensions/tests/peps/pep-9000.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PEP: 9000
Title: Test with authors with email addresses
Author: Francis Fussyreverend <[email protected]>,
Author: Francis Fussyreverend <[email protected]>,
Javier Soulfulcommodore <[email protected]>
Created: 20-Apr-2022
Status: Draft
Expand Down
3 changes: 0 additions & 3 deletions peps/pep-0002.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
PEP: 2
Title: Procedure for Adding New Modules
Version: $Revision$
Last-Modified: $Date$
Author: Brett Cannon <[email protected]>,
Martijn Faassen <[email protected]>
Status: Active
Type: Process
Content-Type: text/x-rst
Created: 07-Jul-2001
Post-History: 07-Jul-2001, 09-Mar-2002

Expand Down
3 changes: 0 additions & 3 deletions peps/pep-0004.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
PEP: 4
Title: Deprecation of Standard Modules
Version: $Revision$
Last-Modified: $Date$
Author: Brett Cannon <[email protected]>, Martin von Löwis <[email protected]>
Status: Active
Type: Process
Content-Type: text/x-rst
Created: 01-Oct-2000
Post-History:

Expand Down
1 change: 0 additions & 1 deletion peps/pep-0005.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Guidelines for Language Evolution
Author: Paul Prescod <[email protected]>
Status: Superseded
Type: Process
Content-Type: text/x-rst
Created: 26-Oct-2000
Post-History:
Superseded-By: 387
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0006.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Bug Fix Releases
Author: Aahz <[email protected]>, Anthony Baxter <[email protected]>
Status: Superseded
Type: Process
Content-Type: text/x-rst
Created: 15-Mar-2001
Post-History: 15-Mar-2001, 18-Apr-2001, 19-Aug-2004

Expand Down
2 changes: 1 addition & 1 deletion peps/pep-0008.rst
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ complete sentences, with each sentence ending in a period.
You should use one or two spaces after a sentence-ending period in
multi-sentence comments, except after the final sentence.

Ensure that your comments are clear and easily understandable to other
Ensure that your comments are clear and easily understandable to other
speakers of the language you are writing in.

Python coders from non-English speaking countries: please write your
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0010.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Voting Guidelines
Author: Barry Warsaw <[email protected]>
Status: Active
Type: Process
Content-Type: text/x-rst
Created: 07-Mar-2002
Post-History: 07-Mar-2002

Expand Down
1 change: 0 additions & 1 deletion peps/pep-0011.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Author: Martin von Löwis <[email protected]>,
Brett Cannon <[email protected]>
Status: Active
Type: Process
Content-Type: text/x-rst
Created: 07-Jul-2002
Post-History: `18-Aug-2007 <https://mail.python.org/archives/list/[email protected]/thread/DSSGXU5LBCMKYMZBRVB6RF3YAB6ST5AV/>`__,
`14-May-2014 <https://mail.python.org/archives/list/[email protected]/thread/T7WTUJ6TD3IGYGWV3M4PHJWNLM2WPZAW/>`__,
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0013.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Author: The Python core team and community
Status: Active
Type: Process
Topic: Governance
Content-Type: text/x-rst
Created: 16-Dec-2018


Expand Down
1 change: 0 additions & 1 deletion peps/pep-0020.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: The Zen of Python
Author: Tim Peters <[email protected]>
Status: Active
Type: Informational
Content-Type: text/x-rst
Created: 19-Aug-2004
Post-History: 22-Aug-2004

Expand Down
1 change: 0 additions & 1 deletion peps/pep-0100.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Python Unicode Integration
Author: Marc-André Lemburg <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 10-Mar-2000
Python-Version: 2.0
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0102.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Author: Anthony Baxter <[email protected]>,
Guido van Rossum <[email protected]>
Status: Superseded
Type: Informational
Content-Type: text/x-rst
Created: 09-Jan-2002
Post-History:
Superseded-By: 101
Expand Down
11 changes: 0 additions & 11 deletions peps/pep-0160.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
PEP: 160
Title: Python 1.6 Release Schedule
Version: $Revision$
Last-Modified: $Date$
Author: Fred L. Drake, Jr. <[email protected]>
Status: Final
Type: Informational
Topic: Release
Content-Type: text/x-rst
Created: 25-Jul-2000
Python-Version: 1.6
Post-History:
Expand Down Expand Up @@ -74,11 +71,3 @@ Copyright
=========

This document has been placed in the public domain.



..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
End:
10 changes: 0 additions & 10 deletions peps/pep-0200.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
PEP: 200
Title: Python 2.0 Release Schedule
Version: $Revision$
Last-Modified: $Date$
Author: Jeremy Hylton <[email protected]>
Status: Final
Type: Informational
Topic: Release
Content-Type: text/x-rst
Created: 12-Jul-2000
Python-Version: 2.0
Post-History:
Expand Down Expand Up @@ -379,10 +376,3 @@ Rejected
* 'indexing-for' - Thomas Wouters Special syntax to give Python code
access to the loop-counter in 'for' loops. (Without adding a new
keyword.)


..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
End:
1 change: 0 additions & 1 deletion peps/pep-0201.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Lockstep Iteration
Author: Barry Warsaw <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 13-Jul-2000
Python-Version: 2.0
Post-History: 27-Jul-2000
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0202.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: List Comprehensions
Author: Barry Warsaw <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 13-Jul-2000
Python-Version: 2.0
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0203.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Augmented Assignments
Author: Thomas Wouters <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 13-Jul-2000
Python-Version: 2.0
Post-History: 14-Aug-2000
Expand Down
13 changes: 0 additions & 13 deletions peps/pep-0205.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
PEP: 205
Title: Weak References
Version: $Revision$
Last-Modified: $Date$
Author: Fred L. Drake, Jr. <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 14-Jul-2000
Python-Version: 2.1
Post-History: 11-Jan-2001
Expand Down Expand Up @@ -453,13 +450,3 @@ Copyright
=========

This document has been placed in the public domain.


..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
sentence-end-double-space: t
fill-column: 70
coding: utf-8
End:
1 change: 0 additions & 1 deletion peps/pep-0207.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Rich Comparisons
Author: Guido van Rossum <[email protected]>, David Ascher <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 25-Jul-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0208.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Reworking the Coercion Model
Author: Neil Schemenauer <[email protected]>, Marc-André Lemburg <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 04-Dec-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0212.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Loop Counter Iteration
Author: Peter Schneider-Kamp <[email protected]>
Status: Rejected
Type: Standards Track
Content-Type: text/x-rst
Created: 22-Aug-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0213.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Attribute Access Handlers
Author: Paul Prescod <[email protected]>
Status: Deferred
Type: Standards Track
Content-Type: text/x-rst
Created: 21-Jul-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0214.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Extended Print Statement
Author: Barry Warsaw <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 24-Jul-2000
Python-Version: 2.0
Post-History: 16-Aug-2000
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0217.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Display Hook for Interactive Use
Author: Moshe Zadka <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 31-Jul-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0218.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Adding a Built-In Set Object Type
Author: Greg Wilson <[email protected]>, Raymond Hettinger <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 31-Jul-2000
Python-Version: 2.2
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0219.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Stackless Python
Author: Gordon McMillan <[email protected]>
Status: Deferred
Type: Standards Track
Content-Type: text/x-rst
Created: 14-Aug-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0221.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Import As
Author: Thomas Wouters <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 15-Aug-2000
Python-Version: 2.0
Post-History:
Expand Down
11 changes: 0 additions & 11 deletions peps/pep-0222.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
PEP: 222
Title: Web Library Enhancements
Version: $Revision$
Last-Modified: $Date$
Author: A.M. Kuchling <[email protected]>
Status: Deferred
Type: Standards Track
Content-Type: text/x-rst
Created: 18-Aug-2000
Python-Version: 2.1
Post-History: 22-Dec-2000
Expand Down Expand Up @@ -261,11 +258,3 @@ Copyright
=========

This document has been placed in the public domain.



..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
End:
1 change: 0 additions & 1 deletion peps/pep-0223.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Change the Meaning of ``\x`` Escapes
Author: Tim Peters <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 20-Aug-2000
Python-Version: 2.0
Post-History: 23-Aug-2000
Expand Down
11 changes: 0 additions & 11 deletions peps/pep-0226.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
PEP: 226
Title: Python 2.1 Release Schedule
Version: $Revision$
Last-Modified: $Date$
Author: Jeremy Hylton <[email protected]>
Status: Final
Type: Informational
Topic: Release
Content-Type: text/x-rst
Created: 16-Oct-2000
Python-Version: 2.1
Post-History:
Expand Down Expand Up @@ -127,11 +124,3 @@ guide. http://www.python.org/doc/essays/styleguide.html
It is understood that any code contributed will be released under
an Open Source license. Do not contribute code if it can't be
released this way.



..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
End:
1 change: 0 additions & 1 deletion peps/pep-0227.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Statically Nested Scopes
Author: Jeremy Hylton <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 01-Nov-2000
Python-Version: 2.1
Post-History:
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0228.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: Reworking Python's Numeric Model
Author: Moshe Zadka <[email protected]>, Guido van Rossum <[email protected]>
Status: Withdrawn
Type: Standards Track
Content-Type: text/x-rst
Created: 04-Nov-2000
Post-History:

Expand Down
11 changes: 0 additions & 11 deletions peps/pep-0229.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
PEP: 229
Title: Using Distutils to Build Python
Version: $Revision$
Last-Modified: $Date$
Author: A.M. Kuchling <[email protected]>
Status: Final
Type: Standards Track
Content-Type: text/x-rst
Created: 16-Nov-2000
Python-Version: 2.1
Post-History:
Expand Down Expand Up @@ -118,11 +115,3 @@ Copyright
=========

This document has been placed in the public domain.



..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
End:
Loading