From aaa10da9b54d73c04057ef0165f829ec2ac5ca0b Mon Sep 17 00:00:00 2001 From: Mladen Gibanica <11275336+mgcth@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:25:46 +0100 Subject: [PATCH] Use ruff for linting --- .github/workflows/github-action-lint.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-action-lint.yaml b/.github/workflows/github-action-lint.yaml index 3a44faab..2b438f34 100644 --- a/.github/workflows/github-action-lint.yaml +++ b/.github/workflows/github-action-lint.yaml @@ -17,6 +17,9 @@ jobs: run: | python -m pip install --upgrade pip pip install -e ".[lint]" - - name: Lint with flake8 + - name: Lint with ruff run: | - flake8 src tests --show-source --statistics + ruff check --output-format=github src tests + - name: Format with ruff + run: | + ruff format --check src tests