From 56e9bc2cbdb130deb8e5752867096f83027e584f Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Fri, 14 Oct 2022 19:53:15 +0200 Subject: [PATCH] chore: configure pre-commit as git hook --- .pre-commit-config.yaml | 9 +++++++++ shell.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..32afb2154 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2022 Sarah Vaupel +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +repos: + - repo: https://github.com/fsfe/reuse-tool + rev: v1.0.0 + hooks: + - id: reuse diff --git a/shell.nix b/shell.nix index ee48fe9b2..80b80297b 100644 --- a/shell.nix +++ b/shell.nix @@ -77,7 +77,7 @@ in pkgs.mkShell { nativeBuildInputs = [develop inDevelop killallUni2work diffRunning] ++ (with pkgs; [ nodejs-14_x postgresql_12 openldap google-chrome exiftool memcached minio minio-client - gup skopeo + gup skopeo reuse pre-commit # busybox # for print services, but interferes with build commands in develop-shell htop pdftk #pdftk just for testing pdf-passwords