Merge "Fixes tox pep8 error in macOS"
This commit is contained in:
commit
81bf607a3e
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
FIND_DIRS=${*:-"."}
|
||||
|
||||
find $FIND_DIRS -type f \( -name '*.po' -o -name '*.pot' \) -print0 | \
|
||||
while read -r -d '' FILE; do
|
||||
msgfmt --check-format -o /dev/null "$FILE"
|
||||
done
|
2
tox.ini
2
tox.ini
|
@ -34,7 +34,7 @@ whitelist_externals =
|
|||
[testenv:pep8]
|
||||
commands =
|
||||
flake8
|
||||
bash -c "find {toxinidir} -type f \( -name '*.po' -o -name '*.pot' \) -print0 | xargs -0 -n1 --no-run-if-empty msgfmt --check-format -o /dev/null"
|
||||
bash {toxinidir}/tools/check-po.sh {toxinidir}/doc {toxinidir}/glossary
|
||||
python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml
|
||||
bash {toxinidir}/tools/check-zanata-users-list.sh
|
||||
whitelist_externals = bash
|
||||
|
|
Loading…
Reference in New Issue