gradio/scripts/lint_backend.sh
Freddy Boulton e0a55df7dc
Modify CI to check for unused imports (#2555)
* Add lint script + remove unused imports

* Add lint file to sc
2022-10-28 10:56:18 -04:00

7 lines
238 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
python -m black --check gradio test
python -m isort --profile=black --check-only gradio test
python -m flake8 --ignore=E731,E501,E722,W503,E126,E203,F403,F541 gradio test --exclude gradio/__init__.py