Commit 0716e7c7 authored by Tomas Krizek's avatar Tomas Krizek Committed by Petr Špaček

ci: use pylint

parent 31101eff
#!/usr/bin/env bash
WORKING_DIR="$(pwd)"
RET_CODE=0
IFS=$'\n'
for FILE in $(find . -name '*.py' | sort | grep -v '\./cache_usage_benchmark')
do
cd "${WORKING_DIR}"
cd "`dirname "${FILE}"`"
echo "${FILE}"
python3 -m pylint -E "`basename \"${FILE}\"`" || RET_CODE=1
done
cd "${WORKING_DIR}"
exit $RET_CODE
\ No newline at end of file
set -e
# Find Python modules and standalone Python scripts, skip directory
# cache_usage_benchmark
FILES=$(find . \
-type d -exec test -e '{}/__init__.py' \; -print -prune -o \
-path './cache_usage_benchmark' -prune -o \
-name '*.py' -print)
python3 -m pylint --rcfile pylintrc ${FILES}
[MESSAGES CONTROL]
disable=
missing-docstring,
too-few-public-methods,
too-many-locals,
too-many-return-statements,
too-many-branches,
fixme,
unused-import, # checked by flake8
invalid-name,
broad-except,
bad-continuation,
global-statement,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment