mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Add pre-commit-config.yaml
This commit is contained in:
parent
5ca515acc7
commit
eb2315a50f
1 changed files with 15 additions and 0 deletions
15
pre-commit-config.yaml
Normal file
15
pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.9.3
|
||||
hooks:
|
||||
- id: isort
|
||||
args: ['--profile', 'black', '--check-only', '--diff']
|
||||
files: ^((model_utils|tests)/)|setup.py
|
||||
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 4.0.1
|
||||
hooks:
|
||||
- id: flake8
|
||||
args: ['--ignore=E402,E501,E731,W503']
|
||||
files: ^(model_utils|tests)/
|
||||
Loading…
Reference in a new issue