Commit Graph

41 Commits

Author SHA1 Message Date
Hugo van Kemenade 5fb8b28a06
Many PEPs: 'Author' must be list of 'Name <email@example.com>, ...' (#2809) 2022-10-05 19:48:43 +03:00
CAM Gerlach a6336e9d74
Lint: Update headers and checks per current guidance & provide helpful feedback (#2484)
* Lint: Disable a couple potentially problematic/unneeded hooks

* Lint: Refine regex for existing Content-Type and PEP references checks

* Lint: Refine regex for Python-Version check and fix a couple deviations

* Lint: Refine regex for Created check and fix a couple deviations

* Lint: Refine regex for Resolution check and fix a few deviations

* Lint: Add new check for Post-History header

* Lint: Add check for Discussions-To header link

* Lint: Add basic check for PEP title presense & excessive length

* Lint: Add check for PEP/BDFL-Delegate header

* Lint: Add check for Sponsor header

* Lint: Add check for legacy Author field format

* Lint: Add check for RST Author field

* Lint: Use more helpful, user-oriented descriptions for header checks

* PEP 245: Add historical note and archive links to wiki page/email lsit

* PEP 628: Add direct link to resolution in acceptance message

* Lint: Explictly allow all valid RFC 2822 line continuations in headers

* Lint: Tweak Post-History and Resolution checks to accept fragments
2022-04-20 04:53:08 -05:00
Daniel Glus 65edc87719 PEP 263: fix typo in coding regex (#672)
The characters before the # in a coding declaration line can be spaces, tabs, or form feeds; the escape sequence for a form feed is a `\f`, not a `\v` as is shown here.
2018-06-15 12:31:53 -07:00
Mariatta cf3bad5ab3
Revert "Rename all .txt PEP files to .rst (GH-462)" (GH-464)
This reverts commit bb0e518ed3.
2017-11-11 11:28:55 -08:00
Huang Huang bb0e518ed3 Rename all .txt PEP files to .rst (GH-462)
For https://github.com/python/peps/issues/1
2017-11-11 10:30:43 -08:00
Alex Vandiver 1c7a9828e2 PEP 263: Fix escaping of "\"s in regex and strings (#220)
Observed to be missing the backslashes on
https://www.python.org/dev/peps/pep-0263/#defining-the-encoding
2017-03-10 10:55:19 +03:00
Mariatta d1d344880b Fixes to PEP 263 and PEP 272 (#198)
PEP 263: remove extra colon and unnecessary backticks
PEP 272: remove extra colon and change back traceback code
2017-02-02 20:24:41 -08:00
Mariatta 9b58a292ea Convert PEP 263 to reST (#191)
- convert the content to text/x-rst
- update http://python.org/sf/* url
  with https://bugs.python.org/issue*
2017-02-02 09:58:20 -08:00
Serhiy Storchaka d6fe43240e Remove redundant leading zeroes in PEP references. 2016-03-31 17:45:40 +03:00
Serhiy Storchaka 40d4760aea Encoding name can contain underscores. 2016-03-17 15:47:38 +02:00
Guido van Rossum e8c05569ec Clarify things around the coding cookie.
Serhiy Storchaka: "Coding cookie must be in comment, only the first
occurrence in the line must be taken to account (here is a bug in
CPython), encoding name must be ASCII, and there must not be any
Python statement on the line that contains the encoding
declaration."
2016-03-16 17:19:40 -07:00
Brett Cannon be912df710 Fix a minor typo. 2009-06-04 19:44:37 +00:00
Brett Cannon 681781a940 Standardize Marin von Loewis' name. 2007-06-28 20:03:18 +00:00
Brett Cannon b5d4417ea3 Standard Martin v. Loewis' email address. 2007-06-28 00:03:22 +00:00
Brett Cannon cdf5d3ce68 Fix the headers so that they are in the right order and no required headers are
missing.
2007-06-19 04:20:07 +00:00
Georg Brandl 7cbb1c2f19 Clarify encoding cookie format. 2006-12-19 21:04:01 +00:00
David Goodger c5b5d3c83d added Last-Modified headers to all PEPs without 2006-03-23 20:13:19 +00:00
Neal Norwitz 996935cc16 Clarify what happens when passing a Unicode string to compile().
Based on MvL's comment from 2005-02-09 in SF bug # 1115379.
2006-03-23 05:25:38 +00:00
David Goodger 794b1f8f11 converted to UTF-8 & added coding slugs 2006-03-02 19:54:50 +00:00
Neal Norwitz 8a80d48999 Martin changed the encoding warning to an error 2006-02-28 23:10:27 +00:00
Marc-André Lemburg 119e550763 Correct numbering. 2005-11-04 09:45:13 +00:00
Marc-André Lemburg eec80f2059 Add examples section to help users reading the PEP due to a parser
error which pointed them to the text.
2005-11-04 09:42:51 +00:00
Martin v. Löwis a860b7fe69 Patch #1011144: Correct regex syntax. 2004-08-18 13:25:54 +00:00
Guido van Rossum 4df1a9b763 Remove leading blank line so pep2html recognizes this file. 2004-07-24 20:50:49 +00:00
Andrew M. Kuchling 1e0563b4e6 [Bug #995522] Fix regex 2004-07-21 21:22:51 +00:00
Andrew M. Kuchling 5c0f2e9923 Fix grammar nit 2003-02-21 15:24:41 +00:00
Martin v. Löwis f12cda0bc3 Require that the encoding declaration is on a line of its own, to simplify
parsing.
2002-09-03 11:56:15 +00:00
Martin v. Löwis 4114030692 Implemented in CVS. 2002-08-05 15:14:31 +00:00
Barry Warsaw b4b2812169 Typo 2002-07-15 02:47:06 +00:00
Martin v. Löwis 6c432cfe3f Use Hisao's strategy of converting to UTF-8. 2002-04-19 17:32:14 +00:00
Marc-André Lemburg 4903b95001 Changed Python's source code encoding default to ASCII.
Added note about handling of Unicode literals in phase 1.
2002-03-15 17:07:12 +00:00
Marc-André Lemburg bcc3471c33 Clarified the class of possible source code encodings. Added link
to Martin's patch.
2002-03-07 11:14:26 +00:00
Marc-André Lemburg e7818687b7 Added support for Last-Modified header and its (possibly automatic)
generation.
2002-03-01 19:07:46 +00:00
Marc-André Lemburg b96b9c4ea3 Extended the coding RE 2002-02-28 09:08:39 +00:00
Marc-André Lemburg 2e572852cf Changes regarding the default encoding and other minor tweaks.
See history for details.
2002-02-27 11:07:16 +00:00
Marc-André Lemburg ea3edf8588 Redo Barry's change... add fill-column. 2002-02-26 20:26:07 +00:00
Marc-André Lemburg 05c2b00dee Fix name. 2002-02-26 20:22:11 +00:00
Barry Warsaw a8e35f6899 Added fill-column: specification to Emacs block at end of file. 2002-02-26 15:58:09 +00:00
Marc-André Lemburg 4073747f5d Adapted to Martin's comments. 2002-02-26 10:01:25 +00:00
Marc-André Lemburg 5b87828901 Remove references to PEP 244. 2001-08-14 17:39:05 +00:00
Marc-André Lemburg ca40cb4bf0 Initial checkin of the PEP 263. 2001-07-18 20:27:09 +00:00