mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Simon Bruder
bac025fd0a
This finally makes the licensing under AGPL-3.0-or-later explicit after I got the okay from the kickstart source owners. This also checks the REUSE compliance in a pre commit hook, and therefore also in CI.
37 lines
875 B
YAML
37 lines
875 B
YAML
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2023 swt23w23
|
|
default_install_hook_types:
|
|
- commit-msg
|
|
- post-commit
|
|
- pre-commit
|
|
|
|
repos:
|
|
- repo: https://github.com/jorisroovers/gitlint
|
|
rev: v0.19.1
|
|
hooks:
|
|
- id: gitlint
|
|
name: Lint git commit message
|
|
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
rev: 2.7.3
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
alias: ec
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: gitlint-author
|
|
name: Check commit author
|
|
description: This hook checks the commit author after the commit (without rejecting)
|
|
entry: gitlint
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
stages:
|
|
- post-commit
|
|
|
|
- repo: https://github.com/fsfe/reuse-tool
|
|
rev: v2.1.0
|
|
hooks:
|
|
- id: reuse
|