mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Two steps pre-commit and better workflow output
This commit is contained in:
parent
c7135875b8
commit
99605b98d4
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
- uses: pre-commit/action@v3.0.1
|
- uses: pre-commit/action@v3.0.1
|
||||||
with:
|
with:
|
||||||
extra_args: --all-files --show-diff-on-failure
|
extra_args: --all-files
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
name: Run tests and generate coverage report
|
name: Run tests and generate coverage report
|
||||||
|
@ -3,8 +3,8 @@ repos:
|
|||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.4.10
|
rev: v0.4.10
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter.
|
- id: ruff # just check the code, and print the errors
|
||||||
- id: ruff
|
- id: ruff # actually fix the fixable errors, but print nothing
|
||||||
args: ["--fix"]
|
args: ["--fix", "--silent"]
|
||||||
# Run the formatter.
|
# Run the formatter.
|
||||||
- id: ruff-format
|
- id: ruff-format
|
Loading…
Reference in New Issue
Block a user