Add pre-commit hooks with some basic linting

Mostly to keep an eye on code quality as I move forward.
This commit is contained in:
Hugo Osvaldo Barrera 2020-06-08 18:18:06 +02:00
parent b4bbc5946a
commit e2d3c1add7
9 changed files with 25 additions and 10 deletions

15
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-toml
- id: check-added-large-files
- id: debug-statements
- repo: https://gitlab.com/pycqa/flake8
rev: "master" # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: [flake8-import-order, flake8-bugbear]