🚨 Add pre-commit

Format code
Add bin/run
This commit is contained in:
Nikolai R Kristiansen committed 2022-01-16 22:49:21 +01:00
1 parent 9d3afadbff
commit dcd8edaaa6
28 files changed
+264 -51

No files matched your search

+19
View File
@@ -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]