mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 19:46:02 +02:00
a2a7d12448
flake8 is broken with Python 2.7, but we have all other builds linting, so not an issue for us.
11 lines
219 B
Bash
Executable File
11 lines
219 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Linting repository..."
|
|
source activate hosts
|
|
|
|
if [ "$PYTHON_VERSION" = "2.7" ]; then
|
|
echo "Skipping flake8 because it is broken on Python $PYTHON_VERSION"
|
|
else
|
|
flake8 --max-line-length 120
|
|
fi
|