Add pre-commit (#140)

* Add pre-commit config files

* Add linting test on github action
This commit is contained in:
Shubhank Saxena
2021-05-26 20:28:17 +05:30
committed by GitHub
parent 94b26a8781
commit 8f228d6844
6 changed files with 53 additions and 1 deletions

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

@@ -0,0 +1,15 @@
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.5.4
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
language_version: python3