diff --git a/lint.sh b/lint.sh index 6c801ef3e..b6b56e32f 100755 --- a/lint.sh +++ b/lint.sh @@ -66,8 +66,15 @@ if [[ $FIX == 1 ]]; then else isort --check-only --diff ${LINT_FILES} black --check --diff ${LINT_FILES} - ruff check --output-format=full ${LINT_FILES} call_shfmt + + if [[ -z "$GITHUB_ACTIONS" ]]; then + RUFF_OUTPUT_FORMAT=full + else + RUFF_OUTPUT_FORMAT=github + fi + + ruff check --output-format="${RUFF_OUTPUT_FORMAT}" ${LINT_FILES} fi # Checking minimum python version