pre-commit: add initial config

Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Filipe Laíns 2020-06-01 23:35:28 +01:00 committed by Lukas Fleischer
parent 8f47b8d731
commit 41a8493411

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

@ -0,0 +1,24 @@
hooks:
- &base
language: python
types: [python]
require_serial: true
exclude: ^migrations/versions
- &flake8
id: flake8
name: flake8
entry: flake8
<<: *base
- &isort
id: isort
name: isort
entry: isort
<<: *base
repos:
- repo: local
hooks:
- <<: *flake8
- <<: *isort
args: ['--check-only', '--diff']