style: apply flake8 and black formatting
To check for errors: $ pre-commit run --all-files To install as pre-commit hook: $ pre-commit install
This commit is contained in:
parent
8c7d0ed947
commit
751182b70d
8 changed files with 171 additions and 89 deletions
15
.pre-commit-config.yaml
Normal file
15
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: flake8
|
||||
name: flake8
|
||||
language: system
|
||||
entry: flake8
|
||||
types: [python]
|
||||
stages: [commit]
|
||||
- id: black
|
||||
name: black
|
||||
language: system
|
||||
entry: black
|
||||
types: [python]
|
||||
stages: [commit]
|
||||
Loading…
Add table
Add a link
Reference in a new issue