Skip to content

Commit

Permalink
ci(workflows): add Ruff formatter, Ruff linter
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw committed Nov 5, 2024
1 parent e7548ca commit 49d2900
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ruff-formatter.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
src: "."
options: "format --check"
16 changes: 16 additions & 0 deletions .github/workflows/ruff-linter.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
src: "."
options: "check"

0 comments on commit 49d2900

Please sign in to comment.