From e1c96f6b4bebc4092c54bf1c3e62aa978190cf51 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Thu, 5 Oct 2023 14:37:22 +0200 Subject: [PATCH] feat: added additional precommit checks * check-byte-order-marker * conventional-pre-commit --- .ecrc | 4 ++++ .ecrc.license | 3 +++ .pre-commit-config.yaml | 7 +++++++ 3 files changed, 14 insertions(+) create mode 100644 .ecrc create mode 100644 .ecrc.license diff --git a/.ecrc b/.ecrc new file mode 100644 index 0000000..1dc83fd --- /dev/null +++ b/.ecrc @@ -0,0 +1,4 @@ +{ + "IgnoreDefaults": false, + "Exclude": ["^LICENSE$", "^LICENSES/.*"] +} diff --git a/.ecrc.license b/.ecrc.license new file mode 100644 index 0000000..37bf852 --- /dev/null +++ b/.ecrc.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 Tobias Schmidl + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43702bd..5d16bcc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: check-merge-conflict + - id: check-byte-order-marker - repo: https://github.com/fsfe/reuse-tool rev: v2.1.0 hooks: @@ -20,4 +21,10 @@ repos: hooks: - id: editorconfig-checker alias: ec + stages: [commit] +- repo: https://github.com/compilerla/conventional-pre-commit + rev: v2.4.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] ...