From 9482502f186694dc804aad181fbdcbf192e4856f Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Mon, 23 Sep 2024 12:47:25 +0200 Subject: [PATCH] ci: introduce ruff checks --- .github/workflows/ruff-formatter.yml | 12 ++++++++++++ .github/workflows/ruff-linter.yml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/ruff-formatter.yml create mode 100644 .github/workflows/ruff-linter.yml diff --git a/.github/workflows/ruff-formatter.yml b/.github/workflows/ruff-formatter.yml new file mode 100644 index 0000000..db3196c --- /dev/null +++ b/.github/workflows/ruff-formatter.yml @@ -0,0 +1,12 @@ +#SPDX-FileCopyrightText: 2024 Birger Schacht +#SPDX-License-Identifier: MIT +name: Run ruff formatter + +on: [push, pull_request] + +jobs: + ruff: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/poetry-ruff.yml@v0.4.2 + with: + src: "." + options: "format --check" diff --git a/.github/workflows/ruff-linter.yml b/.github/workflows/ruff-linter.yml new file mode 100644 index 0000000..2177100 --- /dev/null +++ b/.github/workflows/ruff-linter.yml @@ -0,0 +1,11 @@ +#SPDX-FileCopyrightText: 2024 Birger Schacht +#SPDX-License-Identifier: MIT +name: Run ruff linter + +on: [push, pull_request] + +jobs: + ruff: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/poetry-ruff.yml@v0.4.2 + with: + src: "."