Created
June 6, 2020 09:22
-
-
Save gonzalodiaz/ad2503f9f38fa74ff9b4242f4d737f73 to your computer and use it in GitHub Desktop.
LintesSh
This file contains 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
#! /bin/bash -e | |
# workaround to have conda working | |
eval "$(conda shell.bash hook)" | |
environment_header=$(head -n 1 environment.yml) | |
environment_name=${environment_header/name: /} | |
conda activate "${environment_name}" | |
echo "Running Black..." | |
black . | |
echo "Running Flake8..." | |
flake8 . | |
echo "Running pyDocStyle..." | |
pydocstyle . | |
echo "Running MyPy..." | |
mypy src | |
echo "Congratulations! All went well." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment