diff options
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r-- | .github/workflows/lint.yml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index df3f274..7a3dbca 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,15 +25,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 black + pip install black ruff - - name: Lint with flake8 + - name: Lint with black run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --select=E9,F63,F7,F82 --show-source - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --exit-zero --max-complexity=5 + black --check --skip-string-normalization --line-length 120 rq tests - - name: Lint with black + - name: Lint with ruff run: | - black -S -l 120 rq/ + # stop the build if there are Python syntax errors. + ruff check --show-source rq tests |