Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 402c2b4

Browse files
committed
Merge branch 'main' into release-toml
2 parents 9dc3311 + 84d1499 commit 402c2b4

Some content is hidden

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

76 files changed

+8249
-1630
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,15 @@ peps/pep-0799.rst @pablogsal
678678
peps/pep-0800.rst @JelleZijlstra
679679
peps/pep-0801.rst @warsaw
680680
peps/pep-0802.rst @AA-Turner
681+
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+
# ...
687+
peps/pep-0809.rst @zooba
688+
peps/pep-0810.rst @pablogsal @DinoV @Yhg1s
689+
peps/pep-0811.rst @sethmlarson @gpshead
681690
# ...
682691
peps/pep-2026.rst @hugovk
683692
# ...

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
persist-credentials: false
2525

2626
- name: Set up Python 3
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: "3.x"
3030

.github/workflows/render.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727

2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
python-version:
33-
- "3.9"
3433
- "3.10"
3534
- "3.11"
3635
- "3.12"
@@ -42,12 +41,12 @@ jobs:
4241
- "ubuntu-latest"
4342

4443
steps:
45-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v5
4645
with:
4746
persist-credentials: false
4847

4948
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v5
49+
uses: actions/setup-python@v6
5150
with:
5251
python-version: ${{ matrix.python-version }}
5352
allow-prereleases: true

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
output-format = "full"
2-
target-version = "py39"
2+
target-version = "py310"
33

44
[lint]
55
ignore = [

check-peps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def _validate_python_version(line_num: int, line: str) -> MessageIterator:
401401
def _validate_post_history(line_num: int, body: str) -> MessageIterator:
402402
"""'Post-History' must be '`DD-mmm-YYYY <Thread URL>`__, …' or `DD-mmm-YYYY`"""
403403

404-
if body == "":
404+
if body in ("", "Pending"):
405405
return
406406

407407
for offset, line in enumerate(body.removesuffix(",").split("\n"), start=line_num):
@@ -414,7 +414,7 @@ def _validate_post_history(line_num: int, body: str) -> MessageIterator:
414414
yield from _date(offset, post_date, "Post-History")
415415
yield from _thread(offset, post_url, "Post-History")
416416
else:
417-
yield offset, "post line must be a date or both start with “`” and end with “>`__”"
417+
yield offset, "post line must be a date or both start with “`” and end with “>`__”, or 'Pending'"
418418

419419

420420
def _validate_resolution(line_num: int, line: str) -> MessageIterator:

pep_sphinx_extensions/pep_theme/templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2>Contents</h2>
5555
{{ toc }}
5656
<br>
5757
{%- if not pagename.startswith(("pep-0000", "topic")) %}
58-
<a id="source" href="https://github.com/python/peps/blob/main/peps/{{pagename}}.rst">Page Source (GitHub)</a>
58+
<a id="source" href="https://github.com/python/peps/blob/main/peps/{{pagename}}.rst?plain=1">Page Source (GitHub)</a>
5959
{%- endif %}
6060
</nav>
6161
{%- endif %}

pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def create_pep_json(peps: list[parser.PEP]) -> str:
5656
def write_peps_json(peps: list[parser.PEP], path: Path) -> None:
5757
# Create peps.json
5858
json_peps = create_pep_json(peps)
59-
Path(path, "peps.json").write_text(json_peps, encoding="utf-8")
6059
os.makedirs(os.path.join(path, "api"), exist_ok=True)
6160
Path(path, "api", "peps.json").write_text(json_peps, encoding="utf-8")
6261

pep_sphinx_extensions/tests/pep_lint/test_post_url.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def test_validate_discussions_to_invalid_list_domain(line: str):
6161
"body",
6262
[
6363
"",
64+
"Pending",
6465
(
6566
"01-Jan-2001, 02-Feb-2002,\n "
6667
"03-Mar-2003, 04-Apr-2004,\n "
@@ -90,7 +91,7 @@ def test_validate_post_history_valid(body: str):
9091
def test_validate_post_history_unbalanced_link(body: str):
9192
warnings = [warning for (_, warning) in check_peps._validate_post_history(1, body)]
9293
assert warnings == [
93-
"post line must be a date or both start with “`” and end with “>`__”"
94+
"post line must be a date or both start with “`” and end with “>`__”, or 'Pending'"
9495
], warnings
9596

9697

peps/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"py3.12": ("https://docs.python.org/3.12/", None),
7474
"py3.13": ("https://docs.python.org/3.13/", None),
7575
"py3.14": ("https://docs.python.org/3.14/", None),
76+
"py3.15": ("https://docs.python.org/3.15/", None),
7677
"python": ("https://docs.python.org/3/", None),
7778
"trio": ("https://trio.readthedocs.io/en/latest/", None),
7879
"typing": ("https://typing.python.org/en/latest/", None),

0 commit comments

Comments
 (0)