Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb806946

Browse files
authored
Introducing sphinx-lint (#60)
* Test sphinx-lint* Update CI* Update CI* Update CI* Update CI
1 parentcda7c16 commitb806946

File tree

7 files changed

+56
-126
lines changed

7 files changed

+56
-126
lines changed

‎.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name:Build
2+
3+
on:
4+
push:
5+
branches:
6+
-"**"
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name:Build
12+
runs-on:ubuntu-latest
13+
steps:
14+
-uses:actions/checkout@v3
15+
-name:Set Up Python 3.10
16+
uses:actions/setup-python@v4
17+
with:
18+
python-version:"3.10"
19+
-name:Get CPython
20+
run:|
21+
git clone https://github.com/python/cpython.git ../cpython --branch=3.10
22+
23+
-name:Install dependencies
24+
run:|
25+
sudo apt update
26+
sudo apt install -y gettext
27+
python -m pip install -r requirements.txt
28+
python -m pip install -r ../cpython/Doc/requirements.txt
29+
30+
-name:Sphinx lint
31+
run:|
32+
sphinx-lint *.po */*.po
33+
34+
-name:Build docs
35+
run:|
36+
PYTHONWARNINGS=ignore::FutureWarning,ignore::RuntimeWarning sphinx-build -j auto -W --keep-going -b html -d ../cpython/Doc/_build/doctree -D language=tr . ../cpython/Doc/_build/html

‎.github/workflows/get-changes.py

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

‎.github/workflows/wrap_branch.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,16 @@ on: workflow_dispatch
55
jobs:
66
wrap:
77
runs-on:ubuntu-latest
8-
9-
strategy:
10-
matrix:
11-
# Run in all these versions of Python
12-
python-version:["3.10"]
13-
148
steps:
159
# Checkout the latest code from the repo
1610
-name:Checkout repo
1711
uses:actions/checkout@v3
1812

1913
# Setup which version of Python to use
20-
-name:Set Up Python${{ matrix.python-version }}
21-
uses:actions/setup-python@v2
14+
-name:Set Up Python3.10
15+
uses:actions/setup-python@v4
2216
with:
23-
python-version:${{ matrix.python-version }}
24-
25-
# Display the Python version being used
26-
-name:Display Python version
27-
run:python -c "import sys; print(sys.version)"
17+
python-version:"3.10"
2818

2919
# Update pip
3020
-name:Update pip
@@ -36,11 +26,15 @@ jobs:
3626

3727
# Install dependencies
3828
-name:Install dependencies
39-
run:sudo apt install gettext
29+
run:sudo apt install-ygettext
4030

4131
# Wrap all po files
4232
-name:Wrap
43-
run:powrap *.po **/*.po
33+
run:powrap *.po */*.po
34+
35+
-name:Sphinx lint
36+
run:|
37+
sphinx-lint *.po */*.po
4438
4539
# Detect changed files
4640
-name:Detect changed files

‎.github/workflows/wrap_pr.yml

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

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ __pycache__/
66
.DS_Store
77
*.pot
88
*.po.bak
9+
locales/

‎.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
-repo:local
3+
hooks:
4+
-id:lint
5+
name:Run sphinx linting
6+
entry:sphinx-lint
7+
language:python
8+
additional_dependencies:['sphinx-lint==0.6.7']
9+
files:\.po$

‎requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ sphinx==4.5.0
44
blurb
55
sphinx-lint==0.6.7
66
python-docs-theme>=2022.1
7+
pre-commit

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp