-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add broken link check to docs, fix multi builder howto, uberify the c…
…heck script and run it in CI
- Loading branch information
Showing
12 changed files
with
286 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
poetry run ruff format sphinxcontrib/typer | ||
poetry run ruff check --fix --select I sphinxcontrib/typer | ||
poetry run ruff check --fix sphinxcontrib/typer | ||
poetry check | ||
poetry run pip check | ||
set -e # Exit immediately if a command exits with a non-zero status. | ||
|
||
echox() { | ||
echo "\033[34m$@\033[0m" # Manually echo the command | ||
"$@" | while IFS= read -r line; do echo " \033[32m$line\033[0m"; done | ||
} | ||
|
||
if [ "$1" == "--no-fix" ]; then | ||
echox poetry run ruff format --check | ||
echox poetry run ruff check --select I | ||
echox poetry run ruff check | ||
else | ||
echox poetry run ruff format | ||
echox poetry run ruff check --fix --select I | ||
echox poetry run ruff check --fix | ||
fi | ||
|
||
echox poetry check | ||
echox poetry run pip check | ||
cd ./doc | ||
echox poetry run doc8 --ignore-path build --max-line-length 100 -q | ||
set +e # Turn off the -e flag to allow the sphinx-build command to fail. | ||
# check for broken links in the docs ############ | ||
echox poetry run sphinx-build -b linkcheck -q -D linkcheck_timeout=5 ./source ./build > /dev/null 2>&1 | ||
if [ $? -ne 0 ]; then | ||
cat ./build/output.txt | ||
exit 1 | ||
fi | ||
################################################# | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,5 +168,6 @@ def menu(): | |
elif menu == "quit": | ||
return | ||
|
||
|
||
if __name__ == "__main__": | ||
cli() |
Oops, something went wrong.