diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 19681e0d5..cbd099696 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -39,7 +39,7 @@ jobs: sudo apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip ruby sudo gem install mdl - sudo pip3 install yamllint + sudo pip3 install yamllint reuse - name: Run linters run: ./hack/pre-commit.sh diff --git a/hack/pre-commit.sh b/hack/pre-commit.sh index 65be822a0..16304bec8 100755 --- a/hack/pre-commit.sh +++ b/hack/pre-commit.sh @@ -48,4 +48,9 @@ run_check '.*\.(ba)?sh' shellcheck # Install via: dnf install yamllint run_check '.*\.ya?ml' yamllint -s -c "${scriptdir}/yamlconfig.yaml" +# reuse: https://git.fsfe.org/reuse/tool +# Install via: dnf install reuse +echo "===== reuse =====" +reuse lint + (! < "${OUTPUTS_FILE}" read -r)