summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-22 09:26:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-22 09:26:42 +0200
commitc40c89f94cc8a6dced2b14f51aa2e87b02b7ee22 (patch)
tree8d52a7b8716376aab4a7cb2aaa0d68a7518ec6cc /.pre-commit-config.yaml
parente34b97312e91606dae2e26064dcd628dc360dc88 (diff)
parentd9f8ef68df1df8cf88d484fc22995f55a9c3f9aa (diff)
downloadredot-engine-c40c89f94cc8a6dced2b14f51aa2e87b02b7ee22.tar.gz
Merge pull request #90457 from Chubercik/ruff-formatter
Replace `black` formatter with `ruff`
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a8bdcd5fa1..dd51d7b419 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,12 +17,12 @@ repos:
platform/android/java/lib/src/com/.*
)
- - repo: https://github.com/psf/black-pre-commit-mirror
- rev: 24.2.0
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.4.4
hooks:
- - id: black
- files: (\.py$|SConstruct|SCsub)
- types_or: [text]
+ - id: ruff
+ args: [--fix]
+ - id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971