From 22c23ba3d606123cd7d6c98fe8d26adde186f4f2 Mon Sep 17 00:00:00 2001 From: June Date: Sat, 8 Jun 2024 23:41:32 +0200 Subject: [PATCH] ci: add a style.yaml workflow with a ruff job running ruff check --- .forgejo/workflows/style.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .forgejo/workflows/style.yaml diff --git a/.forgejo/workflows/style.yaml b/.forgejo/workflows/style.yaml new file mode 100644 index 0000000..4a74254 --- /dev/null +++ b/.forgejo/workflows/style.yaml @@ -0,0 +1,14 @@ +# Links & Resources: +# - https://hatch.pypa.io/latest/install/#github-actions +# - https://docs.astral.sh/ruff/integrations/#github-actions +on: push + +jobs: + ruff: + runs-on: docker + steps: + - uses: actions/checkout@v4 + - name: Install Hatch + uses: https://github.com/pypa/hatch@install + - name: Run Ruff + run: hatch run lint:ruff check --output-format=github .