Last active
December 6, 2024 05:43
-
-
Save Ian729/96e5991b20dde2606c7c08800c88b4a0 to your computer and use it in GitHub Desktop.
do Python lint
This file contains hidden or 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
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