Add pre-commit hooks for ruff code formatting
This commit is contained in:
parent
b03c199c7a
commit
af561487e6
10
.pre-commit-config.yaml
Normal file
10
.pre-commit-config.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
rev: v0.2.2
|
||||||
|
hooks:
|
||||||
|
- id: ruff
|
||||||
|
args: [--fix]
|
||||||
|
- id: ruff-format
|
||||||
|
- id: ruff
|
||||||
|
name: ruff-isort
|
||||||
|
args: [--select, I, --fix]
|
Loading…
x
Reference in New Issue
Block a user