Skip to content

Instantly share code, notes, and snippets.

@Ian729
Last active December 6, 2024 05:43
Show Gist options
  • Save Ian729/96e5991b20dde2606c7c08800c88b4a0 to your computer and use it in GitHub Desktop.
Save Ian729/96e5991b20dde2606c7c08800c88b4a0 to your computer and use it in GitHub Desktop.
do Python lint
set -x
clear
for file in $(find ./ -type f -name "*.py")
do
mypy --exclude '/setup\.py$' --exclude '.*build.*' ${file}
echo "==================================================="
isort ${file}
echo "==================================================="
black --line-length 79 ${file}
echo "==================================================="
flake8 ${file}
echo "==================================================="
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment