mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
323 B
Bash
Executable File
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
|