lint: use ruff pre commit hook (#1566)

* lint: use ruff pre commit hook

* dont install ruff

---------

Co-authored-by: Erik Wrede <erikwrede@users.noreply.github.com>
This commit is contained in:
Dulmandakh 2024-09-29 19:33:10 +08:00 committed by GitHub
parent 5b3ed2c2ba
commit 431826814d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -15,9 +15,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff tox
- name: Format check using Ruff
run: ruff format --check
pip install tox
- name: Run lint
run: tox
env:

View File

@ -26,3 +26,4 @@ repos:
hooks:
- id: ruff
- id: ruff-format
args: [ --check ]