-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: wrapper for flake8 to avoid lint check in python 2.6 because f…
…lake8 don't work with 2.6.
- Loading branch information
1 parent
e8239c5
commit 2d86108
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
if python --version 2>&1 | grep -qi 'Python 2.6'; then | ||
echo "WARNING: flake8 doesn't support 2.6, skip linting (it'll be done in 2.7/3.4/3.6 checks)" | ||
exit 0 | ||
fi | ||
|
||
flake8 "$@" |