Skip to content

Commit afe96b9

Browse files
authored
Merge branch 'main' into pep795
2 parents 2fc4375 + 82acded commit afe96b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+13681
-494
lines changed

.github/CODEOWNERS

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ peps/pep-0020.rst @tim-one
5050
peps/pep-0042.rst @jeremyhylton
5151
# ...
5252
peps/pep-0100.rst @malemburg
53-
peps/pep-0101.rst @hugovk @Yhg1s @pablogsal @ambv @ned-deily
53+
peps/pep-0101.rst @savannahostrowski @hugovk @Yhg1s @pablogsal @ambv @ned-deily
5454
peps/pep-0102.rst @warsaw @gvanrossum
5555
# peps/pep-0103.rst
5656
# ...
@@ -656,7 +656,6 @@ peps/pep-0775.rst @encukou
656656
peps/pep-0776.rst @hoodmane @ambv
657657
peps/pep-0777.rst @warsaw @emmatyping
658658
peps/pep-0778.rst @warsaw @emmatyping
659-
# ...
660659
peps/pep-0779.rst @Yhg1s @colesbury @mpage
661660
peps/pep-0780.rst @lysnikolaou
662661
peps/pep-0781.rst @methane
@@ -675,6 +674,7 @@ peps/pep-0793.rst @encukou
675674
peps/pep-0794.rst @brettcannon
676675
peps/pep-0795.rst @mdboom
677676
# ...
677+
peps/pep-0797.rst @ZeroIntensity
678678
peps/pep-0798.rst @JelleZijlstra
679679
peps/pep-0799.rst @pablogsal
680680
peps/pep-0800.rst @JelleZijlstra
@@ -689,10 +689,20 @@ peps/pep-0808.rst @FFY00
689689
peps/pep-0809.rst @zooba
690690
peps/pep-0810.rst @pablogsal @DinoV @Yhg1s
691691
peps/pep-0811.rst @sethmlarson @gpshead
692-
# ...
692+
peps/pep-0813.rst @warsaw @ericvsmith
693693
peps/pep-0814.rst @vstinner @corona10
694694
peps/pep-0815.rst @emmatyping
695695
peps/pep-0816.rst @brettcannon
696+
peps/pep-0817.rst @warsaw @dstufft
697+
peps/pep-0817/ @warsaw @dstufft
698+
peps/pep-0818.rst @hoodmane @ambv
699+
peps/pep-0819.rst @emmatyping
700+
peps/pep-0820.rst @encukou
701+
peps/pep-0821.rst @JelleZijlstra
702+
peps/pep-0822.rst @methane
703+
peps/pep-0825.rst @warsaw @dstufft
704+
peps/pep-0826.rst @savannahostrowski
705+
peps/pep-0827.rst @1st1
696706
# ...
697707
peps/pep-2026.rst @hugovk
698708
# ...

.github/PULL_REQUEST_TEMPLATE/Add a new PEP.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ If your PEP is not Standards Track, remove the corresponding section.
2929
* [ ] PEP topic [discussed in a suitable venue](https://peps.python.org/pep-0001/#start-with-an-idea-for-python) with general agreement that a PEP is appropriate
3030
* [ ] [Suggested sections](https://peps.python.org/pep-0012/#suggested-sections) included (unless not applicable)
3131
* [ ] Motivation
32-
* [ ] Rationale
3332
* [ ] Specification
33+
* [ ] Rationale
3434
* [ ] Backwards Compatibility
3535
* [ ] Security Implications
3636
* [ ] How to Teach This
3737
* [ ] Reference Implementation
3838
* [ ] Rejected Ideas
3939
* [ ] Open Issues
40+
* [ ] Acknowledgements
41+
* [ ] Footnotes
42+
* [ ] Change History
4043
* [ ] ``Python-Version`` set to valid (pre-beta) future Python version, if relevant
4144
* [ ] Any project stated in the PEP as supporting/endorsing/benefiting from the PEP formally confirmed such
4245
* [ ] Right before or after initial merging, [PEP discussion thread](https://peps.python.org/pep-0001/#discussing-a-pep) created and linked to in ``Discussions-To`` and ``Post-History``

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ updates:
44
directory: "/"
55
schedule:
66
interval: monthly
7+
assignees:
8+
- "ezio-melotti"
79
groups:
810
actions:
911
patterns:
1012
- "*"
13+
cooldown:
14+
default-days: 7

.github/workflows/lint.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ name: Lint PEPs
22

33
on: [push, pull_request, workflow_dispatch]
44

5-
permissions:
6-
contents: read
5+
permissions: {}
76

87
concurrency:
98
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
109
cancel-in-progress: true
1110

1211
env:
1312
FORCE_COLOR: 1
14-
RUFF_FORMAT: github
13+
RUFF_OUTPUT_FORMAT: github
1514

1615
jobs:
17-
pre-commit:
16+
lint:
1817
name: Run pre-commit
1918
runs-on: ubuntu-latest
2019

@@ -23,15 +22,11 @@ jobs:
2322
with:
2423
persist-credentials: false
2524

26-
- name: Set up Python 3
27-
uses: actions/setup-python@v6
28-
with:
29-
python-version: "3.x"
30-
3125
- name: Run pre-commit hooks
32-
uses: tox-dev/action-pre-commit-uv@v1
26+
uses: j178/prek-action@v1
3327

3428
- name: Check spelling
35-
uses: tox-dev/action-pre-commit-uv@v1
29+
uses: j178/prek-action@v1
30+
continue-on-error: true
3631
with:
37-
extra_args: --all-files --hook-stage manual codespell || true
32+
extra_args: --all-files --hook-stage manual codespell

.github/workflows/render.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
python-version:
2525
- "3.x"
26-
- "3.14-dev"
26+
- "3.15-dev"
2727

2828
steps:
2929
- name: Checkout

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- "3.12"
3636
- "3.13"
3737
- "3.14"
38+
- "3.15"
3839
os:
3940
- "windows-latest"
4041
- "macos-latest"

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ default_stages: [pre-commit]
1212
repos:
1313
# General file checks and fixers
1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v5.0.0
15+
rev: v6.0.0
1616
hooks:
1717
- id: end-of-file-fixer
1818
name: "Ensure files end with a single newline"
@@ -48,7 +48,7 @@ repos:
4848
name: "Check YAML"
4949

5050
- repo: https://github.com/psf/black-pre-commit-mirror
51-
rev: 24.10.0
51+
rev: 25.12.0
5252
hooks:
5353
- id: black
5454
name: "Format with Black"
@@ -58,9 +58,9 @@ repos:
5858
files: '^(peps/conf\.py|pep_sphinx_extensions/tests/.*)$'
5959

6060
- repo: https://github.com/astral-sh/ruff-pre-commit
61-
rev: v0.7.0
61+
rev: v0.14.10
6262
hooks:
63-
- id: ruff
63+
- id: ruff-check
6464
name: "Lint with Ruff"
6565
args:
6666
- '--exit-non-zero-on-fix'
@@ -72,13 +72,13 @@ repos:
7272
files: '^release_management/'
7373

7474
- repo: https://github.com/tox-dev/tox-ini-fmt
75-
rev: 1.4.1
75+
rev: 1.7.1
7676
hooks:
7777
- id: tox-ini-fmt
7878
name: "Format tox.ini"
7979

8080
- repo: https://github.com/sphinx-contrib/sphinx-lint
81-
rev: v1.0.0
81+
rev: v1.0.2
8282
hooks:
8383
- id: sphinx-lint
8484
name: "Sphinx lint"
@@ -99,7 +99,7 @@ repos:
9999

100100
# Manual codespell check
101101
- repo: https://github.com/codespell-project/codespell
102-
rev: v2.3.0
102+
rev: v2.4.1
103103
hooks:
104104
- id: codespell
105105
name: "Check for common misspellings in text files"

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ALLSPHINXOPTS = --builder $(BUILDER) \
2222
.PHONY: html
2323
html: venv
2424
$(SPHINXBUILD) $(ALLSPHINXOPTS)
25+
$(VENVDIR)/bin/python3 -m pagefind --site $(BUILDDIR) --verbose
2526

2627
## htmlview to open the index page built by the html target in your browser
2728
.PHONY: htmlview

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ Shortcut redirects are also available.
2020
For example, ``https://peps.python.org/8`` redirects to the canonical link.
2121

2222

23+
API
24+
===
25+
26+
Several data files are available at https://peps.python.org/api/
27+
28+
2329
Contributing to PEPs
2430
====================
2531

pep_sphinx_extensions/pep_processor/html/pep_html_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def get_doc_context(self, docname: str, body: str, _metatags: str) -> dict:
3333
toc_tree = self.env.tocs[docname].deepcopy()
3434
if len(toc_tree) and len(toc_tree[0]) > 1:
3535
toc_tree = toc_tree[0][1] # don't include document title
36-
del toc_tree[0] # remove contents node
36+
if docname.startswith("pep-"):
37+
del toc_tree[0] # remove contents node from PEPs
3738
for node in toc_tree.findall(nodes.reference):
3839
node["refuri"] = node["anchorname"] or '#' # fix targets
3940
toc = self.render_partial(toc_tree)["fragment"]

0 commit comments

Comments
 (0)