Daniel Kantor commited on
Commit
39651ed
·
1 Parent(s): d816011

add ruff in pre-commit

Browse files
Files changed (1) hide show
  1. .pre-commit-config.yaml +9 -4
.pre-commit-config.yaml CHANGED
@@ -5,7 +5,12 @@ repos:
5
  - id: check-yaml
6
  - id: end-of-file-fixer
7
  - id: trailing-whitespace
8
- - repo: https://github.com/psf/black
9
- rev: 22.10.0
10
- hooks:
11
- - id: black
 
 
 
 
 
 
5
  - id: check-yaml
6
  - id: end-of-file-fixer
7
  - id: trailing-whitespace
8
+ - repo: https://github.com/astral-sh/ruff-pre-commit
9
+ # Ruff version.
10
+ rev: v0.9.9
11
+ hooks:
12
+ # Run the linter.
13
+ - id: ruff
14
+ args: [ --fix ]
15
+ # Run the formatter.
16
+ - id: ruff-format