From 99605b98d40c1f89ea3d250ab2dc413073aced74 Mon Sep 17 00:00:00 2001 From: Sli Date: Tue, 2 Jul 2024 20:16:02 +0200 Subject: [PATCH] Two steps pre-commit and better workflow output --- .github/workflows/ci.yml | 2 +- .pre-commit-config.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fea0549d..b5bbaded 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-python@v5 - uses: pre-commit/action@v3.0.1 with: - extra_args: --all-files --show-diff-on-failure + extra_args: --all-files tests: name: Run tests and generate coverage report diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19dc1151..9548a31d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,8 +3,8 @@ repos: # Ruff version. rev: v0.4.10 hooks: - # Run the linter. - - id: ruff - args: ["--fix"] + - id: ruff # just check the code, and print the errors + - id: ruff # actually fix the fixable errors, but print nothing + args: ["--fix", "--silent"] # Run the formatter. - - id: ruff-format + - id: ruff-format \ No newline at end of file