feat(pre-commit): black and isort added

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER 2023-07-27 09:25:12 +03:00
parent af82b4e2d2
commit d4001a5bfa
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 17 additions and 0 deletions

View File

@ -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: