mirror of
https://github.com/django-components/django-components.git
synced 2025-11-26 00:41:54 +00:00
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:
parent
b0742ba608
commit
3d45077ee8
1 changed files with 13 additions and 0 deletions
13
.pre-commit-config.yaml
Normal file
13
.pre-commit-config.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue