From 99bbe3a8ed9b268fb3f54f1f0c838dd7b96184a0 Mon Sep 17 00:00:00 2001 From: KK Date: Tue, 5 Nov 2024 10:16:05 +0100 Subject: [PATCH 1/3] ci(deps): update Ruff config Do not extend Ruff settings to APIS Core (as it makes workflows fail). --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e98aabe..9460eee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,6 @@ blank_line_before_tag="block,if" blank_line_after_tag="endif,endblock" [tool.ruff] -extend = "apis_core/pyproject.toml" src = [".", "apis_ontology"] [tool.ruff.format] From b0f8d66ba8dede1b5e829a976239d34e7a90ab31 Mon Sep 17 00:00:00 2001 From: KK Date: Mon, 14 Oct 2024 15:14:00 +0200 Subject: [PATCH 2/3] ci(workflows): add Ruff formatter, Ruff linter --- .github/workflows/ruff-formatter.yml | 16 ++++++++++++++++ .github/workflows/ruff-linter.yml | 16 ++++++++++++++++ 2 files changed, 32 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..78d2011 --- /dev/null +++ b/.github/workflows/ruff-formatter.yml @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: 2024 K Kollmann +# SPDX-License-Identifier: MIT + +name: Run Ruff formatter + +on: + # runs on opened, synchronised, reopened PRs + pull_request: + workflow_dispatch: + +jobs: + ruff-formatter: + 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..f444811 --- /dev/null +++ b/.github/workflows/ruff-linter.yml @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: 2024 K Kollmann +# SPDX-License-Identifier: MIT + +name: Run Ruff linter + +on: + # runs on opened, synchronised, reopened PRs + pull_request: + workflow_dispatch: + +jobs: + ruff-linter: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/poetry-ruff.yml@v0.4.2 + with: + src: "." + options: "check" From 2074c0a607f17fb2b005d34658a27d3df159124c Mon Sep 17 00:00:00 2001 From: KK Date: Tue, 5 Nov 2024 09:14:58 +0100 Subject: [PATCH 3/3] ci(workflows): add gitlint.yml Add workflow for linting Git commit messages. --- .github/workflows/gitlint.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/gitlint.yml diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml new file mode 100644 index 0000000..5d117ef --- /dev/null +++ b/.github/workflows/gitlint.yml @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2024 K Kollmann +# SPDX-License-Identifier: MIT + +name: Lint Git commit messages + +on: + pull_request: + +jobs: + gitlint: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/gitlint.yml@v0.4.2 + with: + basebranch: ${{ github.event.repository.default_branch }}