Files
swift-mirror/utils/python-lint
2016-06-07 18:08:52 -07:00

13 lines
323 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
python -c 'import flake8; import flake8_import_order' 2>/dev/null
if [[ $? -ne 0 ]]; then
echo "Missing modules flake8 or flake8-import-order. Please be sure to install these python packages before linting."
exit 1
fi
cd $SCRIPT_DIR/..
flake8