From 462aaebd6c2d336c969479278f4aafbb1c0ab13d Mon Sep 17 00:00:00 2001 From: dbcontributions Date: Sun, 1 Sep 2024 02:11:07 +0530 Subject: [PATCH] added-pre-commit-configuration (#1782) --- .pre-commit-config.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..29127126 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + - repo: local + hooks: + - id: ruff + name: Ruff + entry: ruff + language: system + types: [python] + args: [--fix] + + - id: isort + name: isort + entry: isort + language: system + types: [python] + args: ["--profile", "black"]