using ruff as formatter & linter

This commit is contained in:
2024-06-20 21:26:39 +08:00
parent 0c6f4f4961
commit 4e7d54fbef
2 changed files with 34 additions and 19 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.9
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- id: ruff
args: ["--fix"]
- id: ruff-format