Adopt the Ruff code linting tool

https://github.com/charliermarsh/ruff
This commit is contained in:
Adam Turner
2022-12-29 17:00:27 +00:00
parent f852661243
commit 8634fbce60
6 changed files with 78 additions and 3 deletions

View File

@@ -28,6 +28,22 @@ jobs:
- name: Run Tox
run: tox -e ${{ matrix.tool }}
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade ruff
- name: Lint with Ruff
run: ruff . --diff --format github
pre-commit:
runs-on: ubuntu-latest
steps: