aurweb/.pre-commit-config.yaml
Filipe Laíns 41a8493411 pre-commit: add initial config
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2021-02-20 11:24:30 -05: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']