diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 984859c7f30..5012191ca19 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -223,7 +223,7 @@ repos: - id: validate-post-history name: "'Post-History' must be '`DD-mmm-YYYY `__, ...'" language: pygrep - entry: '(?<=\n)Post-History:(?:(?! ?\n|((( +|\n {1,14})(([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])|`([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]) `__)(,|(?=\n[^ ])))+\n(?=[A-Z\n]))))' + entry: '(?<=\n)Post-History:(?:(?! ?\n|((( +|\n {1,14})(([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])|`([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]) `__)(,|(?=\n[^ ])))+\n(?=[A-Z\n]))))' args: [--multiline] files: '^pep-\d+\.(rst|txt)$' types: [text] diff --git a/pep-0684.rst b/pep-0684.rst index 638f1d5ea29..1b9b7a327a1 100644 --- a/pep-0684.rst +++ b/pep-0684.rst @@ -10,7 +10,7 @@ Created: 08-Mar-2022 Python-Version: 3.12 Post-History: `08-Mar-2022 `__, `29-Sep-2022 `__, - `28-Oct-2022 `__, + `28-Oct-2022 `__, Resolution: diff --git a/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py b/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py index 125966e10e0..4d00655880f 100644 --- a/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py +++ b/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py @@ -250,7 +250,7 @@ def _process_discourse_url(parts: list[str]) -> tuple[str, str]: has_title = not first_subpart.isnumeric() if "t" in parts: - item_type = "post" if len(parts) > (5 + has_title) else "thread" + item_type = "message" if len(parts) > (5 + has_title) else "thread" elif "c" in parts: item_type = "category" if has_title: