add pre-commit configuration
This commit is contained in:
parent
982f109c17
commit
bd19ef12ad
|
@ -0,0 +1,2 @@
|
|||
# trivial: apply black/isort
|
||||
982f109c17e994c036fb5e515492b21c57e4c4a9
|
|
@ -0,0 +1,13 @@
|
|||
# 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: 22.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110']
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.7.0
|
||||
hooks:
|
||||
- id: isort
|
||||
args: ['--profile', 'black', '--line-length', '110']
|
Loading…
Reference in New Issue