Skip to content

Commit

Permalink
Colocate Python versions for conditional ruff Github annotations (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEdding authored Nov 14, 2024
1 parent 7d9ef8e commit 1ac8153
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
include:
- python-version: "3.10"
format-for-github: true
defaults:
run:
shell: bash
Expand All @@ -41,7 +44,7 @@ jobs:

- name: Lint (ruff)
run: |
if [[ "$RUNNER_OS" == "Linux" && "${{ matrix.python-version }}" == "3.10" ]]
if [[ "${{ matrix.format-for-github }}" == "true" ]]
then
poetry run ruff check . --config pyproject.toml --output-format=github --no-fix
else
Expand Down

0 comments on commit 1ac8153

Please sign in to comment.