Add pre-commit integration with black, isort and flake8

This commit is contained in:
2024-04-02 00:01:27 +05:30
parent 5c61863534
commit 55d12fdf59
7 changed files with 41 additions and 6 deletions

18
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8