Skip to content

Commit b2d7841

Browse files
phlogistonjohnbehrmann
authored andcommitted
ci: simplify workflow files to use tox instead of ruff directly
Use tox as a wrapper around the ruff checks so that it is easier to run the same checks locally and in the ci. Signed-off-by: John Mulligan <jmulligan@redhat.com>
1 parent 9564137 commit b2d7841

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,14 @@ jobs:
3232
- uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 0
35-
- name: Install ruff
36-
run: |
37-
python3 -m pip install --break-system-packages ruff mypy
35+
- name: Install tox
36+
run: python -m pip install tox
3837
- name: Run ruff format
3938
run: |
40-
ruff --version
41-
if ! ruff format --check --quiet varlink
42-
then
43-
echo "Please run 'ruff format' on the above files or apply the diffs below manually"
44-
ruff format --check --quiet --diff varlink
45-
fi
39+
tox -e ruff-format
4640
- name: Run ruff check
4741
run: |
48-
ruff --version
49-
ruff check varlink
42+
tox -e ruff-check
5043
- name: Type Checking (mypy)
5144
run: |
5245
python3 -m mypy --version

0 commit comments

Comments
 (0)