Skip to content

Instantly share code, notes, and snippets.

@gmanfunky
Last active February 10, 2018 01:35
Show Gist options
  • Save gmanfunky/894b4c3adf31096a5202072bf78325d9 to your computer and use it in GitHub Desktop.
Save gmanfunky/894b4c3adf31096a5202072bf78325d9 to your computer and use it in GitHub Desktop.
dumb flaker
#!/bin/bash
if [ ! -d .venv ]; then
python3 -m virtualenv .venv
source .venv/bin/activate
pip install flake8
else
source .venv/bin/activate
fi
CMD="flake8 --exclude .venv,.git,__pycache__ | tee flake_out.txt"
if [ -d "backend" ]; then
cd backend
bash -c "$CMD"
elif [ -d "src" ]; then
cd src
bash -c "$CMD"
else
bash -c "$CMD"
fi
@gmanfunky
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment