Commit fb0b3f29 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

ci: Check only .py files for pep8 errors

parent 909a612d
# Files to be excluded from pep8 tests
if [ $# -eq 0 ]; then
# Keep only *.py files
py_files=`echo "$@" | awk '/.*\.py/' RS=" "`
if [ -z "$py_files" ]; then
echo "No files to be tested"
pep8 --exclude=$EXCLUDE "$@"
pep8 --exclude=$EXCLUDE "$py_files"
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