Add pre-commit

This commit is contained in:
Joel Collins 2020-11-12 14:30:54 +00:00
parent f4b123c237
commit 5119e2c544
4 changed files with 189 additions and 7 deletions

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

@ -0,0 +1,19 @@
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/timothycrosley/isort
rev: 5.4.2
hooks:
- id: isort
additional_dependencies: [toml]
exclude: ^.*/?setup\.py$
- repo: local
hooks:
- id: pylint
name: pylint
entry: poetry run pylint
files: "./openflexure_microscope/"
language: system
types: [python]