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

ci: Check only .py files for pep8 errors

parent 909a612d
#!/bin/sh
#!/bin/bash
# Files to be excluded from pep8 tests
EXCLUDE=migrations,build,setup,distribute_setup.py,\
setup.py,rapi.py,dictconfig.py,ordereddict.py
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"
else
pep8 --exclude=$EXCLUDE "$@"
pep8 --exclude=$EXCLUDE "$py_files"
fi
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