From ed8b99d49589f54f4bc2649f78eb59d570c7645f Mon Sep 17 00:00:00 2001 From: Ivan Yordanov Date: Wed, 27 Sep 2023 17:42:44 +0300 Subject: [PATCH] fix(ci): windows --- .github/workflows/ci.yaml | 3 ++- .pre-commit-config.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 52b799db4..beaf56544 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,8 +36,9 @@ jobs: run: poetry install --no-interaction - name: Lint (ruff) + shell: bash run: | - if [[ $(python -V) == *"3.10"* ]]; + if [[ "$RUNNER_OS" == "Linux" && $(python -V) == *"3.10"* ]]; then echo "::add-matcher::.github/ruff-matcher.json"; poetry run pre-commit run --hook-stage manual ruff-ci --all-files --show-diff-on-failure; diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a7560c89..b132953fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,7 @@ repos: language: system types_or: [python] require_serial: true # run once for all files + pass_filenames: false - id: ruff-ci name: ruff-ci entry: ruff