diff --git a/tools/linter b/tools/linter index 6ddf8bcb..28394065 100755 --- a/tools/linter +++ b/tools/linter @@ -1,6 +1,6 @@ # Run within root directory -if [ $1 = "check" ]; then +if [[ $1 = "check" ]]; then isort . --check-only --diff \ && black . --check \ && pylint src/ \ diff --git a/tools/test b/tools/test index 71b26e1b..16915f28 100755 --- a/tools/test +++ b/tools/test @@ -1,6 +1,6 @@ # Run within root directory -if [ $1 = "html" ]; then +if [[ $1 = "html" ]]; then coverage run -m pytest && coverage html else coverage run -m pytest && coverage report