chore: update linters and replace black with ruff-format
This commit is contained in:
parent
3d93be39d6
commit
e156ea4108
3 changed files with 8 additions and 13 deletions
|
|
@ -2,7 +2,7 @@ files: ^halig|tests$
|
|||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
args: [ --markdown-linebreak-ext=md ]
|
||||
|
|
@ -19,20 +19,14 @@ repos:
|
|||
args: [ --fix=lf ]
|
||||
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.1.6
|
||||
rev: v0.4.4
|
||||
hooks:
|
||||
- id: ruff
|
||||
args:
|
||||
- --fix
|
||||
- --exit-non-zero-on-fix
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.11.0
|
||||
hooks:
|
||||
- id: black
|
||||
pass_filenames: false
|
||||
args:
|
||||
- "halig"
|
||||
- id: ruff-format
|
||||
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue