Created
December 19, 2019 09:34
-
-
Save league55/1d3fc95a4b96bb249848d7147675516c to your computer and use it in GitHub Desktop.
Flake8 in a virtualenv
This file contains hidden or 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
PROJECT_DIR=$1 | |
# Creating temporary directory and new virtual environment not to mess things | |
TMP_DIR=$(mktemp -d) | |
virtualenv -p python3 ${TMP_DIR} >> /dev/null | |
source ${TMP_DIR}/bin/activate >> /dev/null | |
# installing flake | |
pip install flake8 >> /dev/null | |
flake8 ${PROJECT_DIR} | |
deactivate | |
rm -rf ${TMP_DIR} | |
echo "Linting OK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment