Skip to content

Commit

Permalink
fix(ci): windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sujuka99 committed Sep 27, 2023
1 parent 5229ff1 commit ed8b99d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed8b99d

Please sign in to comment.