forked from kompetenzinventar/ki-backend
31 lines
670 B
YAML
31 lines
670 B
YAML
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: flake8
|
|
name: flake8
|
|
entry: flake8
|
|
language: system
|
|
files: ^.*\.py$
|
|
exclude: ^(migrations).*$
|
|
- id: yapf
|
|
name: yapf
|
|
entry: yapf -i
|
|
language: system
|
|
files: ^.*\.py$
|
|
exclude: ^(migrations).*$
|
|
- id: unittest
|
|
name: unittest
|
|
entry: python -m unittest discover ki
|
|
language: system
|
|
exclude: .*
|
|
always_run: true
|
|
- id: reuse
|
|
name: reuse
|
|
entry: reuse lint
|
|
language: system
|
|
exclude: .*
|
|
always_run: true
|