Make ruff output in github format if running on CI (#2070)

pull/2071/head^2
Gulshan Singh 2 years ago committed by GitHub
parent 638cd45e5e
commit 45665e823c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save