ci: use ruff as formatter and linter

This commit is contained in:
2024-05-22 01:23:55 +08:00
parent 937bbe2eee
commit 38e0d7f8d1
4 changed files with 34 additions and 27 deletions

View File

@ -4,11 +4,10 @@ repos:
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.1.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- id: ruff
args: ["--fix"]
- id: ruff-format