Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 3d7d23b

Browse files
sanity-check.sh: disable some spurious warnings
* The default behaviour of pydocstyle is to ignore "test_" files when given a directory to check. Follow its example and ignore "test_" files in the invocation we use too. * Ignore pycodestyle "E203" warnings - sometimes they are spurious (PyCQA/pycodestyle#373).
1 parent 9ecf51a commit 3d7d23b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/sanity-check/sanity-check.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ printf "%s" "$PYTHON_FILES" | xargs --no-run-if-empty black --line-length 79 -v
119119

120120
# Run pycodestyle on python files
121121
printf "Running pycodestyle on python files...\n"
122-
printf "%s" "$PYTHON_FILES" | xargs --no-run-if-empty pycodestyle || rc=1
122+
printf "%s" "$PYTHON_FILES" | xargs --no-run-if-empty pycodestyle --ignore=E203 || rc=1
123123

124124
# Run pydocstyle on python files
125125
printf "Running pydocstyle on python files...\n"
126-
printf "%s" "$PYTHON_FILES" | xargs --no-run-if-empty pydocstyle || rc=1
126+
printf "%s" "$PYTHON_FILES" | xargs --no-run-if-empty pydocstyle --match='(?!.*test_).*\.py' || rc=1
127127

128128
exit "$rc"

0 commit comments

Comments
 (0)