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 Oct 14, 2024
1 parent 611d7a5 commit 77b2252
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 --output-format=github"

0 comments on commit 77b2252

Please sign in to comment.