Skip to content

Commit

Permalink
Disable code style check for Python 2.7 because Python 2.7 also has a…
Browse files Browse the repository at this point in the history
…n issue with flake8 now.
  • Loading branch information
martin68 committed Sep 12, 2019
1 parent 8dc38a7 commit 53d15f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/check-code-style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
# value compatibility with Python 2.6, however recently it seems that flake8
# has dropped Python 2.6 compatibility. That's only fair, but now I need to
# work around it, hence this trivial script :-).
# Python 2.7 also has an issue with flake8 now, so disable it for Python 2.7

if python -c 'import sys; sys.exit(0 if sys.version_info[:2] >= (2, 7) else 1)'; then
if python -c 'import sys; sys.exit(0 if sys.version_info[:2] > (2, 7) else 1)'; then
echo "Updating installation of flake8 .." >&2
pip-accel install --upgrade --quiet --requirement=requirements-checks.txt
flake8
else
echo "Skipping code style checks on Python 2.6 .." >&2
echo "Skipping code style checks on Python 2.7 .." >&2
fi

0 comments on commit 53d15f0

Please sign in to comment.