Skip to content

Commit 5331543

Browse files
authored
ci: use uv.lock for ruff version (#661)
# Description The GitHub action doesn't support using the exact version from `uv.lock` and uses `pyproject.toml` with version expression. As long as the version in tools cache satisfies this expression it's going to be used, however it has two problems: 1. Local runs can produce different results compared to CI. 2. CI results can change over time without code changes. Seems to be that it happened [here](#611 (comment)) and also when trying to run linter on `1.0-dev`: [failure](https://github.com/a2aproject/a2a-python/actions/runs/21581854986).
1 parent 120b8c5 commit 5331543

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/linter.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ jobs:
2727

2828
- name: Run Ruff Linter
2929
id: ruff-lint
30-
uses: astral-sh/ruff-action@v3
30+
run: uv run ruff check --output-format=github
3131
continue-on-error: true
3232

3333
- name: Run Ruff Formatter
3434
id: ruff-format
35-
uses: astral-sh/ruff-action@v3
35+
run: uv run ruff format --check
3636
continue-on-error: true
37-
with:
38-
args: "format --check"
3937

4038
- name: Run MyPy Type Checker
4139
id: mypy

0 commit comments

Comments
 (0)