Statistics
| Branch: | Tag: | Revision:

root / ci / pep8.sh @ dfaacac0

History | View | Annotate | Download (337 Bytes)

1 b3a67b6e Ilias Tsitsimpis
#!/bin/bash
2 078cb806 Christos Stavrakakis
3 01b47803 Ilias Tsitsimpis
# Files to be excluded from pep8 tests
4 01b47803 Ilias Tsitsimpis
EXCLUDE=migrations,build,setup,distribute_setup.py,\
5 01b47803 Ilias Tsitsimpis
setup.py,rapi.py,dictconfig.py,ordereddict.py
6 762b93d7 Christos Stavrakakis
7 b3a67b6e Ilias Tsitsimpis
# Keep only *.py files
8 dfaacac0 Ilias Tsitsimpis
py_files=$(echo "$@" | awk '/.*\.py/' RS=" " ORS=" ")
9 b3a67b6e Ilias Tsitsimpis
10 b3a67b6e Ilias Tsitsimpis
if [ -z "$py_files" ]; then
11 3f868eeb Ilias Tsitsimpis
    echo "No files to be tested"
12 3f868eeb Ilias Tsitsimpis
else
13 dfaacac0 Ilias Tsitsimpis
    pep8 --exclude=$EXCLUDE $py_files
14 3f868eeb Ilias Tsitsimpis
fi