Skip to content

Instantly share code, notes, and snippets.

@gonzalodiaz
Created June 6, 2020 09:22
Show Gist options
  • Save gonzalodiaz/ad2503f9f38fa74ff9b4242f4d737f73 to your computer and use it in GitHub Desktop.
Save gonzalodiaz/ad2503f9f38fa74ff9b4242f4d737f73 to your computer and use it in GitHub Desktop.
LintesSh
#! /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