Removed unneeded lines in linter (#257)

Co-authored-by: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com>
This commit is contained in:
Ivan Cheung
2022-02-01 12:19:19 -05:00
committed by GitHub
co-authored by Karl Weinmeister
parent cfa73ed53b
commit de5f8b0653
+4 -4
View File
@@ -84,19 +84,19 @@ if [ ${#notebooks[@]} -gt 0 ]; then
FLAKE8_RTN=$? FLAKE8_RTN=$?
else else
echo "Running black..." echo "Running black..."
python3 -m nbqa black "$notebook" --nbqa-mutate python3 -m nbqa black "$notebook"
BLACK_RTN=$? BLACK_RTN=$?
echo "Running pyupgrade..." echo "Running pyupgrade..."
python3 -m nbqa pyupgrade "$notebook" --nbqa-mutate python3 -m nbqa pyupgrade "$notebook"
PYUPGRADE_RTN=$? PYUPGRADE_RTN=$?
echo "Running isort..." echo "Running isort..."
python3 -m nbqa isort "$notebook" --nbqa-mutate python3 -m nbqa isort "$notebook"
ISORT_RTN=$? ISORT_RTN=$?
echo "Running nbfmt..." echo "Running nbfmt..."
python3 -m tensorflow_docs.tools.nbfmt --remove_outputs "$notebook" python3 -m tensorflow_docs.tools.nbfmt --remove_outputs "$notebook"
NBFMT_RTN=$? NBFMT_RTN=$?
echo "Running flake8..." echo "Running flake8..."
python3 -m nbqa flake8 "$notebook" --show-source --extend-ignore=W391,E501,F821,E402,F404,W503,E203,E722,W293,W291 --nbqa-mutate python3 -m nbqa flake8 "$notebook" --show-source --extend-ignore=W391,E501,F821,E402,F404,W503,E203,E722,W293,W291
FLAKE8_RTN=$? FLAKE8_RTN=$?
fi fi