Skip to content

Instantly share code, notes, and snippets.

@samalba
Created July 11, 2013 01:22
Show Gist options
  • Save samalba/5971752 to your computer and use it in GitHub Desktop.
Save samalba/5971752 to your computer and use it in GitHub Desktop.
Quickly check the syntax of your Python code
# Add this to your ~/.bashrc (or ~/.zshrc)
pycheck () {
type flake8 > /dev/null || {
echo "pip install flake8"
return
}
find . -name '*.py' -type f -exec flake8 {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment