From 3bb9e7da37859489a739e3d7cf501caad91fcc5c Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Mon, 20 Jan 2025 15:45:43 +0000 Subject: [PATCH] ci: Add pre-commit action feel free to move to pre-commit.ci --- .github/workflows/pre-commit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..a3f4ee4 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company +# +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only + +name: pre-commit + +on: + pull_request: + push: + branches: + - main + - 2.2 + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1