Skip to content

Commit d0107ab

Browse files
authored
Use ruff-action's version detection (sphinx-doc#13286)
1 parent 0d4425c commit d0107ab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/lint.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
persist-credentials: false
29-
- name: Get Ruff version from pyproject.toml
30-
run: |
31-
RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
32-
echo "RUFF_VERSION=$RUFF_VERSION" >> $GITHUB_ENV
3329

34-
- name: Install Ruff ${{ env.RUFF_VERSION }}
30+
- name: Install Ruff
3531
uses: astral-sh/ruff-action@v3
3632
with:
3733
args: --version
38-
version: ${{ env.RUFF_VERSION }}
3934

4035
- name: Lint with Ruff
4136
run: ruff check --output-format=github

0 commit comments

Comments
 (0)