From 0d709429916edc4d94b8077af229c4ceb288f42c Mon Sep 17 00:00:00 2001
From: Peter Somhorst
Date: Fri, 18 Oct 2024 16:53:07 +0200
Subject: [PATCH] Fix ruff install
---
.github/workflows/lint.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 98a617350..545248ffb 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -38,6 +38,7 @@ jobs:
python3 --version
- name: Check linting and formatting using ruff
run: |
- python3 -m pip install "ruff == 0.6.9"
+ python3 -m pip install pyproject-deplister
+ pyproject-deplister --extra dev --path pyproject.toml | grep ruff | sed 's/ //g' | xargs -I{} python3 -m pip install "{}"
ruff check || (echo "Please ensure you have a matching version of ruff (`ruff -V`) installed locally." && (exit 1))
ruff format --check || (echo "Please ensure you have a matching version of ruff (`ruff -V`) installed locally." && (exit 1))