Skip to content

Commit 39978a4

Browse files
committed
Merge remote-tracking branch 'origin/main' into pep-exception-timestamps
2 parents 892bb05 + 63c2676 commit 39978a4

File tree

129 files changed

+27344
-2022
lines changed

Some content is hidden

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

129 files changed

+27344
-2022
lines changed

.github/CODEOWNERS

Lines changed: 25 additions & 2 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
@@ -673,12 +672,36 @@ 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
679679
peps/pep-0801.rst @warsaw
680680
peps/pep-0802.rst @AA-Turner
681681
peps/pep-0803.rst @encukou
682+
peps/pep-0804.rst @pradyunsg
683+
# ...
684+
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-0825.rst @warsaw @dstufft
702+
peps/pep-0826.rst @savannahostrowski
703+
peps/pep-0827.rst @1st1
704+
peps/pep-0828.rst @ZeroIntensity
682705
# ...
683706
peps/pep-2026.rst @hugovk
684707
# ...

.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: 4 additions & 4 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
@@ -42,7 +42,7 @@ jobs:
4242
python -m pip install --upgrade pip
4343
4444
- name: Render PEPs
45-
run: make dirhtml JOBS=$(nproc)
45+
run: make dirhtml search JOBS=$(nproc)
4646

4747
# remove the .doctrees folder when building for deployment as it takes two thirds of disk space
4848
- name: Clean up files

.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

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build:
1313
- asdf plugin add uv
1414
- asdf install uv latest
1515
- asdf global uv latest
16-
- make dirhtml JOBS=$(nproc) BUILDDIR=_readthedocs/html
16+
- make dirhtml search JOBS=$(nproc) BUILDDIR=_readthedocs/html
1717

1818
sphinx:
1919
builder: dirhtml

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ dirhtml: BUILDER = dirhtml
4242
dirhtml: html
4343
mv $(BUILDDIR)/404/index.html $(BUILDDIR)/404.html
4444

45+
## search to rebuild the search index
46+
.PHONY: search
47+
search: venv
48+
$(VENVDIR)/bin/python3 -m pagefind --site $(BUILDDIR) --verbose
49+
4550
## linkcheck to check validity of links within PEP sources
4651
.PHONY: linkcheck
4752
linkcheck: BUILDER = linkcheck
@@ -108,6 +113,11 @@ test: venv
108113
spellcheck: _ensure-pre-commit
109114
$(VENVDIR)/bin/python3 -m pre_commit run --all-files --hook-stage manual codespell
110115

116+
## regen-all to regenerate generated source files
117+
.PHONY: regen-all
118+
regen-all:
119+
$(PYTHON) -m release_management update-peps
120+
111121
.PHONY: help
112122
help : Makefile
113123
@echo "Please use \`make <target>' where <target> is one of"

0 commit comments

Comments
 (0)