🚨 Add pre-commit
Format code Add bin/run
This commit is contained in:
1 parent
9d3afadbff
commit
dcd8edaaa6
28 files changed
+264
-51
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: black
|
||||
name: black
|
||||
entry: pipenv run black
|
||||
exclude: model_config.py
|
||||
args: [--check]
|
||||
language: system
|
||||
require_serial: true
|
||||
types: [python]
|
||||
- id: isort
|
||||
name: isort
|
||||
entry: pipenv run isort
|
||||
args: [--check-only]
|
||||
language: system
|
||||
types: [python]
|
||||
Reference in new issue
Block a user