Skip to content

Commit d2299d7

Browse files
authored
Merge branch 'main' into docs/python-package-distribution-files-sdist-wheel-to-spanish
2 parents 5d24bb9 + 53e10d6 commit d2299d7

31 files changed

+608
-575
lines changed

.all-contributorsrc

+27-3
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@
501501
"profile": "https://github.com/miguelalizo",
502502
"contributions": [
503503
"code",
504-
"review"
504+
"review",
505+
"doc"
505506
]
506507
},
507508
{
@@ -688,7 +689,8 @@
688689
"profile": "http://robpasmue.github.io",
689690
"contributions": [
690691
"code",
691-
"review"
692+
"review",
693+
"translation"
692694
]
693695
},
694696
{
@@ -748,7 +750,8 @@
748750
"profile": "https://github.com/Revathyvenugopal162",
749751
"contributions": [
750752
"code",
751-
"review"
753+
"review",
754+
"doc"
752755
]
753756
},
754757
{
@@ -758,8 +761,29 @@
758761
"profile": "https://github.com/tkoyama010",
759762
"contributions": [
760763
"code",
764+
"review",
765+
"doc",
766+
"translation"
767+
]
768+
},
769+
{
770+
"login": "willingc",
771+
"name": "Carol Willing",
772+
"avatar_url": "https://avatars.githubusercontent.com/u/2680980?v=4",
773+
"profile": "https://hachyderm.io/web/@willingc",
774+
"contributions": [
761775
"review"
762776
]
777+
},
778+
{
779+
"login": "kozo2",
780+
"name": "Kozo Nishida",
781+
"avatar_url": "https://avatars.githubusercontent.com/u/12192?v=4",
782+
"profile": "https://github.com/kozo2",
783+
"contributions": [
784+
"review",
785+
"translation"
786+
]
763787
}
764788
],
765789
"contributorsPerLine": 7,

.github/workflows/build-book.yml

+46-46
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,57 @@ jobs:
1515
build-test-book:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v4
1919

20-
- name: Setup Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: '3.9'
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.9"
2424

25-
- name: Upgrade pip
26-
run: |
27-
# install pip=>20.1 to use "pip cache dir"
28-
python3 -m pip install --upgrade pip
29-
- name: Get pip cache dir
30-
id: pip-cache
31-
run: echo "::set-output name=dir::$(pip cache dir)"
25+
- name: Upgrade pip
26+
run: |
27+
# install pip=>20.1 to use "pip cache dir"
28+
python3 -m pip install --upgrade pip
29+
- name: Get pip cache dir
30+
id: pip-cache
31+
run: echo "::set-output name=dir::$(pip cache dir)"
3232

33-
- name: Cache dependencies
34-
uses: actions/cache@v4
35-
with:
36-
path: ${{ steps.pip-cache.outputs.dir }}
37-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38-
restore-keys: |
39-
${{ runner.os }}-pip-
33+
- name: Cache dependencies
34+
uses: actions/cache@v4
35+
with:
36+
path: ${{ steps.pip-cache.outputs.dir }}
37+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38+
restore-keys: |
39+
${{ runner.os }}-pip-
4040
41-
- name: Install dependencies
42-
run: python3 -m pip install nox
41+
- name: Install dependencies
42+
run: python3 -m pip install nox
4343

44-
- name: Build book
45-
run: nox -s docs-test
44+
- name: Build book
45+
run: nox -s docs-test
4646

47-
# Save html as artifact
48-
- name: Save book html as artifact for viewing
49-
uses: actions/upload-artifact@v4
50-
with:
51-
name: book-html
52-
path: |
53-
_build/html/
47+
# Save html as artifact
48+
- name: Save book html as artifact for viewing
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: book-html
52+
path: |
53+
_build/html/
5454
55-
# Push the book's HTML to github-pages
56-
- name: Push to GitHub Pages
57-
# Only push if on main branch
58-
if: github.ref == 'refs/heads/main'
59-
uses: peaceiris/[email protected]
60-
with:
61-
github_token: ${{ secrets.GITHUB_TOKEN }}
62-
publish_dir: ./_build/html
55+
# Push the book's HTML to github-pages
56+
- name: Push to GitHub Pages
57+
# Only push if on main branch
58+
if: github.ref == 'refs/heads/main'
59+
uses: peaceiris/[email protected]
60+
with:
61+
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
publish_dir: ./_build/html
6363

64-
# Test for bad links and ensure alt tags for usability
65-
- name: Check HTML using htmlproofer
66-
uses: chabad360/htmlproofer@master
67-
with:
68-
directory: '_build/html'
69-
arguments: |
70-
--ignore-files "/.+\/_static\/.+/,/genindex.html/"
71-
--ignore-status-codes "404, 403, 429, 503"
64+
# Test for bad links and ensure alt tags for usability
65+
- name: Check HTML using htmlproofer
66+
uses: chabad360/htmlproofer@master
67+
with:
68+
directory: "_build/html"
69+
arguments: |
70+
--ignore-files "/.+\/_static\/.+/,/genindex.html/"
71+
--ignore-status-codes "404, 403, 429, 503"

.pre-commit-config.yaml

+20-15
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# - Register git hooks: pre-commit install --install-hooks
1313

1414
repos:
15-
1615
# Misc commit checks
1716
- repo: https://github.com/pre-commit/pre-commit-hooks
1817
rev: v4.6.0
@@ -28,23 +27,29 @@ repos:
2827
- repo: https://github.com/codespell-project/codespell
2928
rev: v2.3.0
3029
hooks:
31-
- id: codespell
32-
additional_dependencies:
33-
- tomli
34-
exclude: >
35-
(?x)^(
36-
(.*vale-styles.*)|(.*\.po)
37-
)$
30+
- id: codespell
31+
additional_dependencies:
32+
- tomli
33+
exclude: >
34+
(?x)^(
35+
(.*vale-styles.*)|(.*\.po)
36+
)$
3837
3938
- repo: https://github.com/errata-ai/vale
4039
rev: v3.7.0
4140
hooks:
42-
- id: vale
41+
- id: vale
42+
43+
- repo: https://github.com/pre-commit/mirrors-prettier
44+
rev: v3.1.0
45+
hooks:
46+
- id: prettier
47+
types_or: [yaml, html, css, scss, javascript, json, toml]
4348

4449
ci:
45-
autofix_prs: false
46-
#skip: [flake8, end-of-file-fixer]
47-
autofix_commit_msg: |
48-
'[pre-commit.ci 🤖] Apply code format tools to PR'
49-
# Update hook versions every month (so we don't get hit with weekly update pr's)
50-
autoupdate_schedule: monthly
50+
autofix_prs: false
51+
#skip: [flake8, end-of-file-fixer]
52+
autofix_commit_msg: |
53+
'[pre-commit.ci 🤖] Apply code format tools to PR'
54+
# Update hook versions every month (so we don't get hit with weekly update pr's)
55+
autoupdate_schedule: monthly

0 commit comments

Comments
 (0)