Skip to content

Commit c069a7c

Browse files
authored
Merge branch 'main' into maintenance/www.breezy-vcs.org-linkignore
2 parents 9301fb7 + a918470 commit c069a7c

File tree

59 files changed

+3733
-1087
lines changed

Some content is hidden

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

59 files changed

+3733
-1087
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1d7b1abd152e4cb5e6a46e52e6b7e3bf8d366486
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Read the Docs PR preview
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
documentation-links:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: readthedocs/actions/preview@v1
21+
with:
22+
project-slug: "python-packaging-user-guide"

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Test
33
on:
44
merge_group:
55
push:
6+
branches-ignore:
7+
- gh-readonly-queue/** # Temporary merge queue-related GH-made branches
68
pull_request:
79
schedule:
810
- cron: "0 6 * * *" # daily at 6am

.pre-commit-config.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-symlinks
9+
- id: check-yaml
10+
- id: end-of-file-fixer
11+
- id: mixed-line-ending
512
- id: trailing-whitespace
13+
14+
- repo: https://github.com/codespell-project/codespell
15+
rev: v2.2.6
16+
hooks:
17+
- id: codespell
18+
args: ["-L", "ned,ist,oder"]
19+
20+
- repo: local
21+
hooks:
22+
- id: disallow-caps
23+
name: Disallow improper capitalization
24+
language: pygrep
25+
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
26+
exclude: .pre-commit-config.yaml
27+
28+
- repo: https://github.com/pre-commit/pygrep-hooks
29+
rev: v1.10.0
30+
hooks:
31+
- id: rst-backticks
32+
- id: rst-directive-colons
33+
- id: rst-inline-touching-normal
34+
35+
- repo: https://github.com/astral-sh/ruff-pre-commit
36+
rev: v0.1.5
37+
hooks:
38+
- id: ruff
39+
- id: ruff-format

noxfile.py

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
# Attribution-ShareAlike license:
44
# http://creativecommons.org/licenses/by-sa/3.0.
55

6-
import shutil
7-
import nox
86

7+
import nox
98

109
nox.options.sessions = []
1110

@@ -19,10 +18,12 @@ def translation(session):
1918
target_dir = "locales"
2019
session.run(
2120
"sphinx-build",
22-
"-b", "gettext", # build gettext-style message catalogs (.pot file)
23-
"-d", ".nox/.doctrees/", # path to put the cache
21+
"-b",
22+
"gettext", # build gettext-style message catalogs (.pot file)
23+
"-d",
24+
session.cache_dir / ".doctrees", # path to put the cache
2425
"source/", # where the rst files are located
25-
target_dir, # where to put the .pot file
26+
target_dir, # where to put the .pot file
2627
)
2728

2829

@@ -33,13 +34,9 @@ def build(session, autobuild=False):
3334
"""
3435
session.install("-r", "requirements.txt")
3536

36-
target_build_dir = "build"
37-
38-
shutil.rmtree(target_build_dir, ignore_errors=True)
39-
4037
if autobuild:
4138
command = "sphinx-autobuild"
42-
extra_args = "-H", "0.0.0.0"
39+
extra_args = "--host", "0.0.0.0"
4340
else:
4441
# NOTE: This branch adds options that are unsupported by autobuild
4542
command = "sphinx-build"
@@ -49,14 +46,19 @@ def build(session, autobuild=False):
4946
)
5047

5148
session.run(
52-
command, *extra_args,
53-
"-j", "auto", # parallelize the build
54-
"-b", "html", # use HTML builder
49+
command,
50+
*extra_args,
51+
"-j",
52+
"auto", # parallelize the build
53+
"-b",
54+
"html", # use HTML builder
55+
"-d",
56+
session.cache_dir / ".doctrees", # path to put the cache
5557
"-n", # nitpicky warn about all missing references
5658
"-W", # Treat warnings as errors.
5759
*session.posargs,
5860
"source", # where the rst files are located
59-
target_build_dir, # where to put the html output
61+
"build", # where to put the html output
6062
)
6163

6264

@@ -77,11 +79,16 @@ def linkcheck(session):
7779
session.install("-r", "requirements.txt")
7880
session.run(
7981
"sphinx-build",
80-
"-b", "linkcheck", # use linkcheck builder
82+
"-b",
83+
"linkcheck", # use linkcheck builder
84+
"-d",
85+
session.cache_dir / ".doctrees", # path to put the cache
8186
"--color",
82-
"-n", "-W", "--keep-going", # be strict
83-
"source", # where the rst files are located
84-
"build", # where to put the check output
87+
"-n",
88+
"-W",
89+
"--keep-going", # be strict
90+
"source", # where the rst files are located
91+
"build", # where to put the check output
8592
)
8693

8794

requirements.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
sphinx==4.5.0
2-
sphinx-autobuild==0.7.1
3-
sphinx-inline-tabs==2021.4.11b9
4-
python-docs-theme==2023.9
5-
sphinx-copybutton==0.5.0
6-
pypa-docs-theme @ git+https://github.com/pypa/pypa-docs-theme.git
1+
furo==2023.9.10
2+
sphinx==7.2.6
3+
sphinx-autobuild==2021.3.14
4+
sphinx-inline-tabs==2023.4.21
5+
sphinx-copybutton==0.5.2
76
sphinx-toolbox==3.5.0

source/assets/py.png

695 Bytes
Loading

0 commit comments

Comments
 (0)