From d2d423fdf1bb0cd245766e118c9e14e9688a620f Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Fri, 17 Feb 2023 12:38:05 -0800 Subject: [PATCH] add `reuse lint` pre-commit hook check #249 and update other hook repo to publically available one --- .pre-commit-config.yaml | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index daa62106..be6ef651 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,8 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 repos: - # pull mirror from: https://github.com/pre-commit/pre-commit-hooks - - repo: https://gitlab.ba.rivosinc.com/pub/it/pre-commit-hooks.git + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 hooks: - id: check-added-large-files @@ -22,27 +21,7 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] -# FIXME(kbroch): Once we figure out the licensing -# pull mirror from: https://github.com/Lucas-C/pre-commit-hooks - # - repo: https://gitlab.ba.rivosinc.com/pub/it/lucas-c-pre-commit-hooks.git - # rev: 6a776792f4e02734ca75aaaac20311b431b3b8c3 - # hooks: - # - id: insert-license - # files: \.(core|py)$ - # args: - # - --license-filepath - # - LICENSE_HDR.txt - # - id: insert-license - # files: \.(c|h|cc|cpp|S|svh|sv|svp)$ - # args: - # - --license-filepath - # - LICENSE_HDR.txt - # - --comment-style - # - // - -# FIXME(kbroch): Once Cargo.toml defined - # - repo: https://gitlab.ba.rivosinc.com/pub/it/rivos-pre-commit-hooks - # rev: c85480efd69f56e17e29568d64d2a461cc3b5e9f - # hooks: - # - id: cargo-fmt - # - id: cargo-check + - repo: https://github.com/fsfe/reuse-tool + rev: v1.1.2 + hooks: + - id: reuse