Skip to content

Commit 7e2dd28

Browse files
authored
Merge branch 'main' into pep-718-even-more-updates
2 parents 4d33729 + d3c4d45 commit 7e2dd28

File tree

111 files changed

+20107
-1269
lines changed

Some content is hidden

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

111 files changed

+20107
-1269
lines changed

.github/CODEOWNERS

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
@@ -673,6 +672,7 @@ peps/pep-0791.rst @vstinner
673672
peps/pep-0792.rst @dstufft
674673
peps/pep-0793.rst @encukou
675674
peps/pep-0794.rst @brettcannon
675+
peps/pep-0797.rst @ZeroIntensity
676676
peps/pep-0798.rst @JelleZijlstra
677677
peps/pep-0799.rst @pablogsal
678678
peps/pep-0800.rst @JelleZijlstra
@@ -682,6 +682,23 @@ peps/pep-0803.rst @encukou
682682
peps/pep-0804.rst @pradyunsg
683683
# ...
684684
peps/pep-0806.rst @JelleZijlstra
685+
peps/pep-0807.rst @dstufft
686+
peps/pep-0808.rst @FFY00
687+
peps/pep-0809.rst @zooba
688+
peps/pep-0810.rst @pablogsal @DinoV @Yhg1s
689+
peps/pep-0811.rst @sethmlarson @gpshead
690+
peps/pep-0813.rst @warsaw @ericvsmith
691+
peps/pep-0814.rst @vstinner @corona10
692+
peps/pep-0815.rst @emmatyping
693+
peps/pep-0816.rst @brettcannon
694+
peps/pep-0817.rst @warsaw @dstufft
695+
peps/pep-0817/ @warsaw @dstufft
696+
peps/pep-0818.rst @hoodmane @ambv
697+
peps/pep-0819.rst @emmatyping
698+
peps/pep-0820.rst @encukou
699+
peps/pep-0821.rst @JelleZijlstra
700+
peps/pep-0822.rst @methane
701+
peps/pep-0826.rst @savannahostrowski
685702
# ...
686703
peps/pep-2026.rst @hugovk
687704
# ...

.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: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,31 @@ 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

2120
steps:
22-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2322
with:
2423
persist-credentials: false
2524

26-
- name: Set up Python 3
27-
uses: actions/setup-python@v5
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
matrix:
2424
python-version:
2525
- "3.x"
26-
- "3.14-dev"
26+
- "3.15-dev"
2727

2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@v6
3131
with:
3232
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
3333

3434
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v5
35+
uses: actions/setup-python@v6
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
cache: pip

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,19 @@ jobs:
3535
- "3.12"
3636
- "3.13"
3737
- "3.14"
38+
- "3.15"
3839
os:
3940
- "windows-latest"
4041
- "macos-latest"
4142
- "ubuntu-latest"
4243

4344
steps:
44-
- uses: actions/checkout@v5
45+
- uses: actions/checkout@v6
4546
with:
4647
persist-credentials: false
4748

4849
- name: Set up Python ${{ matrix.python-version }}
49-
uses: actions/setup-python@v5
50+
uses: actions/setup-python@v6
5051
with:
5152
python-version: ${{ matrix.python-version }}
5253
allow-prereleases: true

.pre-commit-config.yaml

Lines changed: 21 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,22 +58,27 @@ 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'
6767
files: '^pep_sphinx_extensions/tests/'
68+
- id: ruff-format
69+
name: "Format with Ruff"
70+
args:
71+
- '--check'
72+
files: '^release_management/'
6873

6974
- repo: https://github.com/tox-dev/tox-ini-fmt
70-
rev: 1.4.1
75+
rev: 1.7.1
7176
hooks:
7277
- id: tox-ini-fmt
7378
name: "Format tox.ini"
7479

7580
- repo: https://github.com/sphinx-contrib/sphinx-lint
76-
rev: v1.0.0
81+
rev: v1.0.2
7782
hooks:
7883
- id: sphinx-lint
7984
name: "Sphinx lint"
@@ -94,7 +99,7 @@ repos:
9499

95100
# Manual codespell check
96101
- repo: https://github.com/codespell-project/codespell
97-
rev: v2.3.0
102+
rev: v2.4.1
98103
hooks:
99104
- id: codespell
100105
name: "Check for common misspellings in text files"
@@ -111,3 +116,12 @@ repos:
111116
language: "python"
112117
files: '^peps/pep-\d{4}\.rst$'
113118
require_serial: true
119+
120+
# Hook to regenerate release schedules
121+
- id: "regen-schedules"
122+
name: "Regenerate release schedules from python-releases.toml"
123+
entry: "python -m release_management update-peps"
124+
language: "python"
125+
files: "^release_management/"
126+
pass_filenames: false
127+
require_serial: true

.pytest.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# https://docs.pytest.org/en/stable/reference/customize.html
2+
3+
[pytest]
4+
minversion = "9.0"
5+
6+
# https://docs.pytest.org/en/stable/reference/reference.html#command-line-flags
7+
addopts = [
8+
# Show extra summary information for all non-passing tests
9+
"-r a",
10+
# https://docs.pytest.org/en/stable/explanation/pythonpath.html#import-modes
11+
"--import-mode=importlib",
12+
# https://pytest-cov.readthedocs.io/en/latest/config.html#reference
13+
"--cov=check_peps",
14+
"--cov=pep_sphinx_extensions",
15+
"--cov=release_management",
16+
"--cov-report=html",
17+
"--cov-report=xml",
18+
]
19+
20+
# Fail if pytest.mark.parametrize() has no parameters
21+
empty_parameter_set_mark = "fail_at_collect"
22+
23+
filterwarnings = ["error"]
24+
25+
testpaths = [
26+
"pep_sphinx_extensions",
27+
"release_management",
28+
]
29+
30+
# https://docs.pytest.org/en/stable/reference/reference.html#confval-strict
31+
strict_config = true
32+
strict_markers = true
33+
strict_parametrization_ids = true
34+
strict_xfail = true
35+
36+
# Various tests use Unicode in pytest.mark.parametrize().
37+
disable_test_id_escaping_and_forfeit_all_rights_to_community_support = true

Makefile

Lines changed: 6 additions & 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
@@ -108,6 +109,11 @@ test: venv
108109
spellcheck: _ensure-pre-commit
109110
$(VENVDIR)/bin/python3 -m pre_commit run --all-files --hook-stage manual codespell
110111

112+
## regen-all to regenerate generated source files
113+
.PHONY: regen-all
114+
regen-all:
115+
$(PYTHON) -m release_management update-peps
116+
111117
.PHONY: help
112118
help : Makefile
113119
@echo "Please use \`make <target>' where <target> is one of"

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

0 commit comments

Comments
 (0)