From d4001a5bfa391a2cd1798a68846984181d2ce06e Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Thu, 27 Jul 2023 09:25:12 +0300 Subject: [PATCH] feat(pre-commit): black and isort added Signed-off-by: Onuralp SEZER --- .pre-commit-config.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c5374eee..a81e6ce5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -75,11 +75,28 @@ repos: args: ["-c", "pyproject.toml"] additional_dependencies: ["bandit[toml]"] + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + name: isort (python) + - id: isort + name: isort (cython) + types: [cython] + - id: isort + name: isort (pyi) + types: [pyi] + # - repo: https://github.com/PyCQA/autoflake # rev: v2.2.0 # hooks: # - id: autoflake + - repo: https://github.com/psf/black + rev: 23.7.0 + hooks: + - id: black + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.0.280 hooks: