Skip to content

Commit d5131be

Browse files
authored
Merge branch 'master' into bot/pull-translations
2 parents 7ad2b1c + 4b3c4ab commit d5131be

File tree

464 files changed

+25996
-21737
lines changed

Some content is hidden

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

464 files changed

+25996
-21737
lines changed

.flake8

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
max-line-length = 95
33
ignore =
44
E116,
5+
E203,
56
E241,
67
E251,
8+
E501,
79
E741,
810
W503,
911
W504,
@@ -22,10 +24,10 @@ exclude =
2224
.git,
2325
.tox,
2426
.venv,
27+
venv,
28+
node_modules/*,
2529
tests/roots/*,
2630
build/*,
2731
doc/_build/*,
2832
sphinx/search/*,
2933
doc/usage/extensions/example*.py,
30-
per-file-ignores =
31-
tests/*: E501

.git-blame-ignore-revs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,7 @@ f4c8a0a68e0013808d169357c9f77ebdf19d0f4e
293293

294294
# Change 'isort' profile
295295
a13cf2c24dd16b37670ee1d359f511cbdfa4402d
296+
297+
298+
# 2024 copyright year update
299+
569fde84d49c984282355c768c16426af83132e2

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug report
22
description: Something is not working correctly.
3-
labels: "bug"
3+
labels: "type:bug"
44

55
body:
66
- type: textarea

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest an idea for this project
44
title: '<short description for the feature>'
5-
labels: 'enhancement'
5+
labels: 'type:proposal'
66
assignees: ''
77

88
---

.github/dependabot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ updates:
33
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"
7+
- package-ecosystem: "pip"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/builddoc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Set up Python
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: "3"
2828
- name: Install graphviz
@@ -35,8 +35,8 @@ jobs:
3535
run: >
3636
sphinx-build
3737
-M html ./doc ./build/sphinx
38-
-T
39-
-W
40-
--jobs=auto
4138
-vv
39+
--jobs=auto
40+
--show-traceback
41+
--fail-on-warning
4242
--keep-going

.github/workflows/create-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Set up Python
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: "3"
2525
cache: pip
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Mint PyPI API token
3737
id: mint-token
38-
uses: actions/github-script@v6
38+
uses: actions/github-script@v7
3939
with:
4040
# language=JavaScript
4141
script: |
@@ -78,12 +78,12 @@ jobs:
7878
- uses: actions/checkout@v4
7979
- name: Get release version
8080
id: get_version
81-
uses: actions/github-script@v6
81+
uses: actions/github-script@v7
8282
with:
8383
script: core.setOutput('version', context.ref.replace("refs/tags/v", ""))
8484

8585
- name: Create GitHub release
86-
uses: softprops/action-gh-release@v1
86+
uses: softprops/action-gh-release@v2
8787
if: startsWith(github.ref, 'refs/tags/')
8888
with:
8989
name: "Sphinx ${{ steps.get_version.outputs.version }}"

.github/workflows/lint.yml

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,103 +22,78 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Set up Python
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: "3"
2828
- name: Install pip
2929
run: python -m pip install --upgrade pip
3030

31-
- name: Install known good Ruff
32-
run: python -m pip install ruff==0.0.284
33-
- name: Lint with known good Ruff
34-
run: ruff . --format github
31+
- name: Install Ruff
32+
run: |
33+
ruff_version=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
34+
python -m pip install "ruff==${ruff_version}"
35+
36+
- name: Lint with Ruff
37+
run: ruff check . --output-format github
3538

36-
- name: Install latest Ruff
37-
run: python -m pip install --upgrade ruff
38-
- name: Lint with latest Ruff
39-
continue-on-error: true
40-
run: ruff . --format github
39+
- name: Format with Ruff
40+
run: ruff format . --diff
4141

4242
flake8:
4343
runs-on: ubuntu-latest
4444

4545
steps:
4646
- uses: actions/checkout@v4
4747
- name: Set up Python
48-
uses: actions/setup-python@v4
48+
uses: actions/setup-python@v5
4949
with:
5050
python-version: "3"
5151
- name: Install dependencies
5252
run: |
5353
python -m pip install --upgrade pip
54-
python -m pip install --upgrade "flake8>=3.5.0" "flake8-simplify"
54+
python -m pip install --upgrade "flake8>=3.5.0"
5555
- name: Lint with flake8
5656
run: flake8 .
5757

58-
isort:
59-
runs-on: ubuntu-latest
60-
61-
steps:
62-
- uses: actions/checkout@v4
63-
- name: Set up Python
64-
uses: actions/setup-python@v4
65-
with:
66-
python-version: "3"
67-
- name: Install dependencies
68-
run: |
69-
python -m pip install --upgrade pip
70-
python -m pip install --upgrade isort
71-
- name: Lint with isort
72-
run: isort --check-only --diff .
73-
7458
mypy:
7559
runs-on: ubuntu-latest
7660

7761
steps:
7862
- uses: actions/checkout@v4
7963
- name: Set up Python
80-
uses: actions/setup-python@v4
64+
uses: actions/setup-python@v5
8165
with:
8266
python-version: "3"
8367
- name: Install dependencies
8468
run: |
8569
python -m pip install --upgrade pip
86-
python -m pip install --upgrade "mypy>=0.990" docutils-stubs types-requests
70+
python -m pip install ".[lint,test]"
8771
- name: Type check with mypy
88-
run: mypy sphinx/
72+
run: mypy
8973

9074
docs-lint:
9175
runs-on: ubuntu-latest
9276

9377
steps:
9478
- uses: actions/checkout@v4
9579
- name: Set up Python
96-
uses: actions/setup-python@v4
80+
uses: actions/setup-python@v5
9781
with:
9882
python-version: "3"
9983
- name: Install dependencies
10084
run: |
10185
python -m pip install --upgrade pip
10286
python -m pip install --upgrade sphinx-lint
10387
- name: Lint documentation with sphinx-lint
104-
run: >
105-
sphinx-lint
106-
--enable line-too-long
107-
--max-line-length 85
108-
AUTHORS.rst
109-
CHANGES.rst
110-
CODE_OF_CONDUCT.rst
111-
CONTRIBUTING.rst
112-
README.rst
113-
doc/
88+
run: make doclinter
11489

11590
twine:
11691
runs-on: ubuntu-latest
11792

11893
steps:
11994
- uses: actions/checkout@v4
12095
- name: Set up Python
121-
uses: actions/setup-python@v4
96+
uses: actions/setup-python@v5
12297
with:
12398
python-version: "3"
12499
- name: Install dependencies

.github/workflows/main.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,30 @@ jobs:
3535
- "3.9"
3636
- "3.10"
3737
- "3.11"
38-
- "3.12-dev"
38+
- "3.12"
3939
- "3.13-dev"
4040
docutils:
4141
- "0.18"
4242
- "0.20"
4343
include:
4444
# test every supported Docutils version for the latest supported Python
45-
- python: "3.11"
45+
- python: "3.12"
4646
docutils: "0.19"
4747

4848
steps:
4949
- uses: actions/checkout@v4
5050
- name: Set up Python ${{ matrix.python }}
51-
uses: actions/setup-python@v4
51+
uses: actions/setup-python@v5
5252
if: "!endsWith(matrix.python, '-dev')"
5353
with:
5454
python-version: ${{ matrix.python }}
5555
- name: Set up Python ${{ matrix.python }} (deadsnakes)
56-
uses: deadsnakes/action@v2.1.1
56+
uses: deadsnakes/action@v3.1.0
5757
if: "endsWith(matrix.python, '-dev')"
5858
with:
5959
python-version: ${{ matrix.python }}
6060
- name: Check Python version
61-
run: python --version
61+
run: python --version --version
6262
- name: Install graphviz
6363
run: sudo apt-get install graphviz
6464
- name: Install dependencies
@@ -79,11 +79,11 @@ jobs:
7979
steps:
8080
- uses: actions/checkout@v4
8181
- name: Set up Python
82-
uses: actions/setup-python@v4
82+
uses: actions/setup-python@v5
8383
with:
8484
python-version: "3"
8585
- name: Check Python version
86-
run: python --version
86+
run: python --version --version
8787
- name: Install dependencies
8888
run: |
8989
python -m pip install --upgrade pip
@@ -100,11 +100,11 @@ jobs:
100100
steps:
101101
- uses: actions/checkout@v4
102102
- name: Set up Python
103-
uses: actions/setup-python@v4
103+
uses: actions/setup-python@v5
104104
with:
105105
python-version: "3"
106106
- name: Check Python version
107-
run: python --version
107+
run: python --version --version
108108
- name: Install graphviz
109109
run: sudo apt-get install graphviz
110110
- name: Install dependencies
@@ -127,11 +127,11 @@ jobs:
127127
steps:
128128
- uses: actions/checkout@v4
129129
- name: Set up Python
130-
uses: actions/setup-python@v4
130+
uses: actions/setup-python@v5
131131
with:
132132
python-version: "3"
133133
- name: Check Python version
134-
run: python --version
134+
run: python --version --version
135135
- name: Install dependencies
136136
run: |
137137
python -m pip install --upgrade pip
@@ -150,11 +150,11 @@ jobs:
150150
steps:
151151
- uses: actions/checkout@v4
152152
- name: Set up Python
153-
uses: actions/setup-python@v4
153+
uses: actions/setup-python@v5
154154
with:
155155
python-version: "3"
156156
- name: Check Python version
157-
run: python --version
157+
run: python --version --version
158158
- name: Install graphviz
159159
run: sudo apt-get install graphviz
160160
- name: Install dependencies
@@ -166,4 +166,4 @@ jobs:
166166
env:
167167
VIRTUALENV_SYSTEM_SITE_PACKAGES: "1"
168168
- name: codecov
169-
uses: codecov/codecov-action@v3
169+
uses: codecov/codecov-action@v4

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636
- name: Use Node.js ${{ env.node-version }}
37-
uses: actions/setup-node@v3
37+
uses: actions/setup-node@v4
3838
with:
3939
node-version: ${{ env.node-version }}
4040
cache: "npm"

0 commit comments

Comments
 (0)