Fix pre-commit CI job exit code (#3833)

This commit is contained in:
Jonathan Plasse 2023-03-31 20:47:04 +02:00 committed by GitHub
parent 48d8680e71
commit f3f9a9f297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -227,4 +227,6 @@ jobs:
# Enable color output for pre-commit and remove it for the summary
SKIP=cargo-fmt,clippy,dev-generate-all pre-commit run --all-files --show-diff-on-failure --color=always | \
tee >(sed -E 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})*)?[mGK]//g' >> $GITHUB_STEP_SUMMARY) >&1
exit_code=${PIPESTATUS[0]}
echo '```' >> $GITHUB_STEP_SUMMARY
exit $exit_code

View File

@ -11,8 +11,9 @@ line-length = 88
line-length = 88
select = ["ALL"]
ignore = [
"PL", # pylint
"S", # bandit
"C901", # McCabe complexity
"PL", # pylint
"S", # bandit
]
[tool.ruff.pydocstyle]