Skip to content

Commit e88877e

Browse files
authored
Merge branch 'main' into pagefind-search
2 parents 86e155a + c912896 commit e88877e

File tree

13 files changed

+813
-44
lines changed

13 files changed

+813
-44
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ peps/pep-0791.rst @vstinner
673673
peps/pep-0792.rst @dstufft
674674
peps/pep-0793.rst @encukou
675675
peps/pep-0794.rst @brettcannon
676+
peps/pep-0797.rst @ZeroIntensity
676677
peps/pep-0798.rst @JelleZijlstra
677678
peps/pep-0799.rst @pablogsal
678679
peps/pep-0800.rst @JelleZijlstra
@@ -694,6 +695,7 @@ peps/pep-0816.rst @brettcannon
694695
# ...
695696
peps/pep-0819.rst @emmatyping
696697
peps/pep-0820.rst @encukou
698+
peps/pep-0822.rst @methane
697699
# ...
698700
peps/pep-2026.rst @hugovk
699701
# ...

.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

.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"

peps/pep-0387.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@ Making Incompatible Changes
146146
Making an incompatible change is a gradual process performed over
147147
several releases:
148148

149-
1. :pep:`PEP 1: Start with an idea <1#start-with-an-idea-for-python>` discussion.
150-
If the discussion reaches consensus that acceptance is possible a PEP or
149+
1. Discuss the change.
150+
Depending on the degree of incompatibility, this could be on
151+
`Discourse <https://discuss.python.org/>`__,
152+
the `issue tracker <https://github.com/python/cpython/issues/>`__,
153+
or in an appropriate workgroup or SIG.
154+
If the discussion reaches consensus a :pep:`PEP <1>` or
151155
similar document may be written.
152156
Hopefully users of the affected API will pipe up to comment.
153157

peps/pep-0523.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ implementing their own JITs for CPython by utilizing the proposed API.
239239
Other JITs
240240
''''''''''
241241

242-
It should be mentioned that the Pyston team was consulted on an
242+
It should be mentioned that the Pyston [#pyston]_ team was consulted on an
243243
earlier version of this PEP that was more JIT-specific and they were
244244
not interested in utilizing the changes proposed because they want
245245
control over memory layout they had no interest in directly supporting
246-
CPython itself. An informal discussion with a developer on the PyPy
246+
CPython itself. An informal discussion with a developer on the PyPy [#pypy]_
247247
team led to a similar comment.
248248

249249
Numba [#numba]_, on the other hand, suggested that they would be

peps/pep-0534.rst

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: Improved Errors for Missing Standard Library Modules
33
Author: Tomáš Orsava <[email protected]>,
44
Petr Viktorin <[email protected]>,
55
Alyssa Coghlan <[email protected]>
6-
Status: Deferred
6+
Status: Withdrawn
77
Type: Standards Track
88
Created: 05-Sep-2016
99
Post-History:
@@ -22,16 +22,24 @@ and providing more informative error messages to users when attempts to import
2222
standard library modules fail.
2323

2424

25-
PEP Deferral
26-
============
25+
PEP Withdrawal
26+
==============
27+
28+
The authors have withdrawn this PEP as the core ideas have been implemented over
29+
time. The relevant features include the :data:`sys.stdlib_module_names`
30+
API for listing standard library modules, the
31+
:external+py3.15:option:`--with-missing-stdlib-config`
32+
configure option for distributors to provide custom error messages,
33+
and improved :exc:`ModuleNotFoundError` error messages for missing
34+
:term:`standard library` modules, for example:
2735

28-
The PEP authors aren't actively working on this PEP, so if improving these
29-
error messages is an idea that you're interested in pursuing, please get in
30-
touch! (e.g. by posting to the python-dev mailing list).
36+
.. code-block:: pycon
3137
32-
The key piece of open work is determining how to get the autoconf and Visual
33-
Studio build processes to populate the sysconfig metadata file with the lists
34-
of expected and optional standard library modules.
38+
>>> import zlib
39+
Traceback (most recent call last):
40+
File "<python-input-0>", line 1, in <module>
41+
import zlib
42+
ModuleNotFoundError: Standard library module 'zlib' was not found
3543
3644
3745
Motivation

peps/pep-0686.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PEP: 686
22
Title: Make UTF-8 mode default
33
Author: Inada Naoki <[email protected]>
44
Discussions-To: https://discuss.python.org/t/14737
5-
Status: Accepted
5+
Status: Final
66
Type: Standards Track
77
Created: 18-Mar-2022
88
Python-Version: 3.15

peps/pep-0788.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interpreter by preventing finalization. For example:
3939
4040
// Now we can call Python code, without worrying about the thread
4141
// hanging due to finalization.
42-
if (PyRun_SimpleString("print('My hovercraft is full of eels') < 0) {
42+
if (PyRun_SimpleString("print('My hovercraft is full of eels')") < 0) {
4343
PyErr_Print();
4444
}
4545

peps/pep-0790.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ Actual:
3939
- 3.15.0 alpha 1: Tuesday, 2025-10-14
4040
- 3.15.0 alpha 2: Wednesday, 2025-11-19
4141
- 3.15.0 alpha 3: Tuesday, 2025-12-16
42+
- 3.15.0 alpha 4: Tuesday, 2026-01-13
43+
- 3.15.0 alpha 5: Wednesday, 2026-01-14
4244

4345
Expected:
4446

45-
- 3.15.0 alpha 4: Tuesday, 2026-01-13
46-
- 3.15.0 alpha 5: Tuesday, 2026-02-10
47-
- 3.15.0 alpha 6: Tuesday, 2026-03-10
48-
- 3.15.0 alpha 7: Tuesday, 2026-04-07
47+
- 3.15.0 alpha 6: Tuesday, 2026-02-10
48+
- 3.15.0 alpha 7: Tuesday, 2026-03-10
49+
- 3.15.0 alpha 8: Tuesday, 2026-04-07
4950
- 3.15.0 beta 1: Tuesday, 2026-05-05
5051
(No new features beyond this point.)
5152
- 3.15.0 beta 2: Tuesday, 2026-05-26

0 commit comments

Comments
 (0)