From 8029bb4c57aca101346d0a59e0e09a4e9ec77b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Fri, 15 May 2020 16:44:14 +0100 Subject: [PATCH] Add pre-commit hooks for reuse and basic checkers. --- .github/workflows/githubci.yml | 2 +- .pre-commit-config.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml index 5c76e28..4b9fb4e 100644 --- a/.github/workflows/githubci.yml +++ b/.github/workflows/githubci.yml @@ -10,7 +10,7 @@ jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - uses: actions/setup-python@v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..8db253a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò +# +# SPDX-License-Identifier: Unlicense + +repos: +- repo: https://github.com/fsfe/reuse-tool + rev: latest + hooks: + - id: reuse +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace