Skip to content

Commit b706f97

Browse files
committed
flake8: check for mutable function parameters
install flake8-mutable (and, just to be sure, flake8-builtins;) to check for these things, as reported in #38.
1 parent 3f7b9e8 commit b706f97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo: false
55
env:
66
- MYPYPATH="$TRAVIS_BUILD_DIR/.travis/mypy-stubs"
77
install:
8-
- pip3 install flake8 mypy
8+
- pip3 install flake8-mutable flake8-builtins mypy
99
script:
1010
- ".travis/flake8.sh"
1111
- mypy iocage

.travis/flake8.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Run pep8 on all .py files in all subfolders
33

44
tmpafter=$(mktemp)
5-
find ./libiocage/ -name \*.py -exec flake8 --ignore=E203,W391 {} + | grep -v "./libiocage/__init__.py" > ${tmpafter}
5+
find ./iocage/ -name \*.py -exec flake8 --ignore=E203,W391 {} + | grep -v "./iocage/__init__.py" > ${tmpafter}
66
num_errors_after=`cat ${tmpafter} | wc -l`
77
echo "Current Error Count: ${num_errors_after}"
88
echo "Current Errors:"
@@ -17,7 +17,7 @@ echo "Comparing with last stable release: ${last_release}"
1717
git checkout ${last_release}
1818

1919
tmpbefore=$(mktemp)
20-
find ./libiocage/ -name \*.py -exec flake8 --ignore=E203,W391 {} + | grep -v "./libiocage/__init__.py" > ${tmpbefore}
20+
find ./iocage/ -name \*.py -exec flake8 --ignore=E203,W391 {} + | grep -v "./libiocage/__init__.py" > ${tmpbefore}
2121
num_errors_before=`cat ${tmpbefore} | wc -l`
2222
echo "${last_release}'s Error Count: ${num_errors_before}"
2323

0 commit comments

Comments
 (0)