mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
8f47b8d731
commit
41a8493411
1 changed files with 24 additions and 0 deletions
24
.pre-commit-config.yaml
Normal file
24
.pre-commit-config.yaml
Normal 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']
|
||||||
|
|
Loading…
Add table
Reference in a new issue