Update run_linter.sh

This commit is contained in:
Ivan Cheung
2021-10-07 13:07:59 -04:00
committed by GitHub
parent 421a96d99a
commit cc89c86bcb
+2 -2
View File
@@ -80,7 +80,7 @@ if [ ${#notebooks[@]} -gt 0 ]; then
python3 -m nbqa isort "$notebook" --check
ISORT_RTN=$?
echo "Running flake8..."
python3 -m nbqa flake8 "$notebook" --show-source --extend-ignore=W391,E501,F821,E402,F404,W503,E203,E722
python3 -m nbqa flake8 "$notebook" --show-source --extend-ignore=W391,E501,F821,E402,F404,W503,E203,E722,W293
FLAKE8_RTN=$?
else
echo "Running black..."
@@ -96,7 +96,7 @@ if [ ${#notebooks[@]} -gt 0 ]; then
python3 -m tensorflow_docs.tools.nbfmt --remove_outputs "$notebook"
NBFMT_RTN=$?
echo "Running flake8..."
python3 -m nbqa flake8 "$notebook" --show-source --extend-ignore=W391,E501,F821,E402,F404,W503,E203,E722 --nbqa-mutate
python3 -m nbqa flake8 "$notebook" --show-source --extend-ignore=W391,E501,F821,E402,F404,W503,E203,E722,W293 --nbqa-mutate
FLAKE8_RTN=$?
fi