Skip to content

Commit 712e7ed

Browse files
authored
Merge branch 'master' into autosummary-short-signature
2 parents df273d6 + 74ec220 commit 712e7ed

File tree

340 files changed

+12093
-8079
lines changed

Some content is hidden

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

340 files changed

+12093
-8079
lines changed

.flake8

Lines changed: 0 additions & 38 deletions
This file was deleted.

.gitattributes

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Binary data types
2+
*.gif binary
3+
*.jpg binary
4+
*.mo binary
5+
*.pdf binary
6+
*.png binary
7+
*.zip binary
8+
9+
# Unix-style line endings
10+
[attr]unix text eol=lf
11+
12+
*.conf unix
13+
*.css unix
14+
*.cls unix
15+
*.csv unix
16+
*.dot unix
17+
*.html unix
18+
*.inc unix
19+
*.ini unix
20+
*.jinja unix
21+
*.js unix
22+
*.md unix
23+
*.mjs unix
24+
*.py unix
25+
*.rst unix
26+
*.sty unix
27+
*.tex unix
28+
*.toml unix
29+
*.txt unix
30+
*.svg unix
31+
*.xml unix
32+
*.yml unix
33+
34+
# CRLF files
35+
[attr]dos text eol=crlf
36+
37+
*.bat dos
38+
*.bat.jinja dos
39+
*.stp dos
40+
tests/roots/test-pycode/cp_1251_coded.py dos
41+
42+
# Language aware diff headers
43+
*.c diff=cpp
44+
*.h diff=cpp
45+
*.css diff=css
46+
*.html diff=html
47+
*.md diff=markdown
48+
*.py diff=python
49+
# *.rst diff=reStructuredText
50+
*.tex diff=tex
51+
52+
# Non UTF-8 encodings
53+
tests/roots/test-pycode/cp_1251_coded.py working-tree-encoding=windows-1251
54+
55+
# Generated files
56+
# https://github.com/github/linguist/blob/master/docs/overrides.md
57+
#
58+
# To always hide generated files in local diffs, mark them as binary:
59+
# $ git config diff.generated.binary true
60+
#
61+
[attr]generated linguist-generated=true diff=generated
62+
63+
tests/js/fixtures/**/*.js generated
64+
sphinx/search/minified-js/*.js generated
65+
sphinx/themes/bizstyle/static/css3-mediaqueries.js generated

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ contact_links:
55
url: https://stackoverflow.com/questions/tagged/python-sphinx
66
about: For Q&A purpose, please use Stackoverflow with the tag python-sphinx
77
- name: Discussion
8-
url: https://groups.google.com/forum/#!forum/sphinx-users
9-
about: For general discussion, please use sphinx-users mailing list.
8+
url: https://github.com/sphinx-doc/sphinx/discussions
9+
about: For general discussion, please use GitHub Discussions.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
1-
Subject: <short purpose of this pull request>
1+
<!--
2+
Thank you for creating this pull request and for spending time to help Sphinx!
3+
Our contributors' guide can be found online: https://www.sphinx-doc.org/en/master/internals/contributing.html
4+
Ask any questions at https://github.com/sphinx-doc/sphinx/discussions
5+
-->
26

3-
### Feature or Bugfix
4-
<!-- please choose -->
5-
- Feature
6-
- Bugfix
7-
- Refactoring
87

9-
### Purpose
10-
- <long purpose of this pull request>
11-
- <Environment if this PR depends on>
8+
## Purpose
129

13-
### Detail
14-
- <feature1 or bug1>
15-
- <feature2 or bug2>
10+
<!--
11+
A description of the purpose of this pull request.
12+
Ensure that all relevant information is included for reviewers,
13+
including any environment-specific details.
1614
17-
### Relates
18-
- <URL or Ticket>
15+
* If you plan to add tests or documentation after opening this PR,
16+
please note it here.
17+
* For user-visible changes, remember to add an entry to CHANGES.rst.
18+
* Please add your name to AUTHORS.rst if you haven't already!
19+
-->
1920

21+
22+
## References
23+
24+
<!--
25+
Please add any relevant links here, especially including any
26+
GitHub issues or Pull Requests that this PR would resolve.
27+
This helps to ensure that reviewers have context from
28+
previous discussions or decisions.
29+
-->
30+
31+
- <...>
32+
- <...>
33+
- <...>

.github/workflows/builddoc.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ jobs:
3131
- name: Install graphviz
3232
run: sudo apt-get install --no-install-recommends --yes graphviz
3333
- name: Install uv
34-
run: >
35-
curl --no-progress-meter --location --fail
36-
--proto '=https' --tlsv1.2
37-
"https://astral.sh/uv/install.sh"
38-
| sh
34+
uses: astral-sh/setup-uv@v5
35+
with:
36+
version: latest
37+
enable-cache: false
3938
- name: Install dependencies
4039
run: uv pip install .[docs]
4140
- name: Render the documentation

.github/workflows/create-release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,14 @@ jobs:
3535
with:
3636
python-version: "3"
3737
- name: Install uv
38-
run: >
39-
curl --no-progress-meter --location --fail
40-
--proto '=https' --tlsv1.2
41-
"https://astral.sh/uv/install.sh"
42-
| sh
38+
uses: astral-sh/setup-uv@v5
39+
with:
40+
version: latest
41+
enable-cache: false
4342

4443
- name: Install build dependencies (pypa/build, twine)
4544
run: |
4645
uv pip install build "twine>=5.1"
47-
# resolution fails without betterproto and protobuf-specs
48-
uv pip install "pypi-attestations~=0.0.12" "sigstore-protobuf-specs==0.3.2" "betterproto==2.0.0b6"
4946
5047
- name: Build distribution
5148
run: python -m build
@@ -65,7 +62,7 @@ jobs:
6562

6663
- name: Convert attestations to PEP 740
6764
run: >
68-
python utils/convert_attestations.py
65+
uv run utils/convert_attestations.py
6966
"$BUNDLE_PATH"
7067
"$SIGNER_IDENTITY"
7168
env:

.github/workflows/lint.yml

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -31,41 +31,17 @@ jobs:
3131
RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
3232
echo "RUFF_VERSION=$RUFF_VERSION" >> $GITHUB_ENV
3333
34-
- name: Install Ruff
35-
run: >
36-
curl --no-progress-meter --location --fail
37-
--proto '=https' --tlsv1.2
38-
--write-out "%{stderr}Downloaded: %{url}\n"
39-
"https://astral.sh/ruff/$RUFF_VERSION/install.sh"
40-
| sh
34+
- name: Install Ruff ${{ env.RUFF_VERSION }}
35+
uses: astral-sh/ruff-action@v3
36+
with:
37+
args: --version
38+
version: ${{ env.RUFF_VERSION }}
4139

4240
- name: Lint with Ruff
43-
run: ruff check . --output-format github
41+
run: ruff check --output-format=github
4442

4543
- name: Format with Ruff
46-
run: ruff format . --diff
47-
48-
flake8:
49-
runs-on: ubuntu-latest
50-
51-
steps:
52-
- uses: actions/checkout@v4
53-
with:
54-
persist-credentials: false
55-
- name: Set up Python
56-
uses: actions/setup-python@v5
57-
with:
58-
python-version: "3"
59-
- name: Install uv
60-
run: >
61-
curl --no-progress-meter --location --fail
62-
--proto '=https' --tlsv1.2
63-
"https://astral.sh/uv/install.sh"
64-
| sh
65-
- name: Install dependencies
66-
run: uv pip install --upgrade "flake8>=6.0"
67-
- name: Lint with flake8
68-
run: flake8 .
44+
run: ruff format --diff
6945

7046
mypy:
7147
runs-on: ubuntu-latest
@@ -79,11 +55,10 @@ jobs:
7955
with:
8056
python-version: "3"
8157
- name: Install uv
82-
run: >
83-
curl --no-progress-meter --location --fail
84-
--proto '=https' --tlsv1.2
85-
"https://astral.sh/uv/install.sh"
86-
| sh
58+
uses: astral-sh/setup-uv@v5
59+
with:
60+
version: latest
61+
enable-cache: false
8762
- name: Install dependencies
8863
run: uv pip install ".[lint,test]"
8964
- name: Type check with mypy
@@ -101,11 +76,10 @@ jobs:
10176
with:
10277
python-version: "3"
10378
- name: Install uv
104-
run: >
105-
curl --no-progress-meter --location --fail
106-
--proto '=https' --tlsv1.2
107-
"https://astral.sh/uv/install.sh"
108-
| sh
79+
uses: astral-sh/setup-uv@v5
80+
with:
81+
version: latest
82+
enable-cache: false
10983
- name: Install dependencies
11084
run: uv pip install ".[lint,test]"
11185
- name: Type check with pyright
@@ -123,11 +97,10 @@ jobs:
12397
with:
12498
python-version: "3"
12599
- name: Install uv
126-
run: >
127-
curl --no-progress-meter --location --fail
128-
--proto '=https' --tlsv1.2
129-
"https://astral.sh/uv/install.sh"
130-
| sh
100+
uses: astral-sh/setup-uv@v5
101+
with:
102+
version: latest
103+
enable-cache: false
131104
- name: Install dependencies
132105
run: uv pip install --upgrade sphinx-lint
133106
- name: Lint documentation with sphinx-lint
@@ -145,11 +118,10 @@ jobs:
145118
with:
146119
python-version: "3"
147120
- name: Install uv
148-
run: >
149-
curl --no-progress-meter --location --fail
150-
--proto '=https' --tlsv1.2
151-
"https://astral.sh/uv/install.sh"
152-
| sh
121+
uses: astral-sh/setup-uv@v5
122+
with:
123+
version: latest
124+
enable-cache: false
153125
- name: Install dependencies
154126
run: uv pip install --upgrade twine build
155127
- name: Lint with twine

0 commit comments

Comments
 (0)