Statistics
| Branch: | Tag: | Revision:

root / ci / pep8.sh @ fde2c1f7

History | View | Annotate | Download (350 Bytes)

1
#!/bin/bash
2

    
3
# Files to be excluded from pep8 tests
4
EXCLUDE=migrations,build,setup,distribute_setup.py,\
5
setup.py,rapi.py,dictconfig.py,ordereddict.py,parsedate.py
6

    
7
# Keep only *.py files
8
py_files=$(echo "$@" | awk '/.*\.py/' RS=" " ORS=" ")
9

    
10
if [ -z "$py_files" ]; then
11
    echo "No files to be tested"
12
else
13
    pep8 --exclude=$EXCLUDE $py_files
14
fi