Add pre-commit config

Add pre-commit config file to run isort, black and flake8 before each commit.
related to #36
This commit is contained in:
Hanif Birgani 2021-09-02 16:47:12 +04:30
parent b0742ba608
commit 3d45077ee8

13
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.8b0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8