File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,17 @@ jobs:
24
24
25
25
steps :
26
26
- uses : actions/checkout@v4
27
+ - name : Get Ruff version from pyproject.toml
28
+ run : |
29
+ RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
30
+ echo "RUFF_VERSION=$RUFF_VERSION" >> $GITHUB_ENV
31
+
27
32
- name : Install Ruff
28
33
run : >
29
- RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
30
34
curl --no-progress-meter --location --fail
31
35
--proto '=https' --tlsv1.2
32
- "https://astral.sh/ruff/${RUFF_VERSION}/install.sh"
36
+ --write-out "%{stderr}Downloaded: %{url}\n"
37
+ "https://astral.sh/ruff/$RUFF_VERSION/install.sh"
33
38
| sh
34
39
35
40
- name : Lint with Ruff
You can’t perform that action at this time.
0 commit comments