lint: use ruff pre commit hook

This commit is contained in:
Dulmandakh 2024-07-05 23:16:34 +08:00
parent dc3b2e49c1
commit e1d1d5197e
2 changed files with 1 additions and 2 deletions

View File

@ -16,8 +16,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install ruff tox
- name: Format check using Ruff
run: ruff format --check
- name: Run lint
run: tox
env:

View File

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