aurweb/.pre-commit-config.yaml
Filipe Laíns 661e544d04 pre-commit: add initial config
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2020-06-02 17:41:47 -04:00

24 lines
381 B
YAML

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']