Skip to content

Commit ed2a08e

Browse files
pandafynemesifier
authored andcommitted
[fix] Fixed pdf file check in QA script
1 parent c5cbf0d commit ed2a08e

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

pyproject.toml

+12
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
[tool.docstrfmt]
22
extend_exclude = ["*.py", "**/*.py", "modules/**/*.py"]
3+
4+
[tool.isort]
5+
skip_glob = ["modules/*"]
6+
7+
[tool.flake8]
8+
max-line-length = 110
9+
exclude = ["modules/*"]
10+
11+
[tool.black]
12+
exclude = '''
13+
modules/*
14+
'''

run-qa-checks

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
# openwisp-utils checks
6-
#This is done first to ignore build directories for openwisp-utils checks
6+
# This is done first to ignore build directories for openwisp-utils checks
77
openwisp-qa-check \
88
--skip-checkmigrations \
99
--skip-checkmakemigrations\
@@ -15,7 +15,7 @@ openwisp-qa-check \
1515
--jslinter
1616

1717
echo ''
18-
echo 'Build documention to look for syntax errors'
18+
echo 'Build documentation to look for syntax errors'
1919
make build
2020

2121
# check for broken link
@@ -29,14 +29,14 @@ fi
2929
pylinkvalidate.py "$BASE_URL/dev/" \
3030
-w 4 -m process
3131
kill "${pid}"
32+
cd ..
3233

3334
# Verify PDFs are valid
34-
for pdf in _build/*/*.pdf; do
35+
find _build/ -type f -name "*.pdf" | while read -r pdf; do
3536
if ! pdfinfo "$pdf"; then
3637
echo "$pdf is broken"
3738
fi
3839
done
3940

40-
cd ..
4141
python sort_spelling_wordlist.py --qa || \
4242
(echo "Spelling Vocabulary not up to date"; exit 1)

setup.cfg

-3
This file was deleted.

0 commit comments

Comments
 (0)