From adae14ef4a62f4e6b5a16a8a998b3314a041cebe Mon Sep 17 00:00:00 2001 From: Matej Straka Date: Sun, 13 Oct 2024 23:56:49 +0200 Subject: [PATCH] ci: Add manual workflow trigger --- .github/workflows/pre-commit.yml | 4 ++++ .pre-commit-config.yaml | 31 +++++++++++++++++++++++++------ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1c6e309..e6691ef 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -3,6 +3,8 @@ name: pre-commit hooks on: push: + workflow_dispatch: + jobs: test: runs-on: ubuntu-latest @@ -23,4 +25,6 @@ jobs: - name: Run pre-commit hooks run: | + pre-commit clean + pre-commit install --install-hooks pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8bfe526..2406284 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,13 +16,32 @@ repos: rev: v0.6.9 hooks: - id: ruff - args: ["--select", "E", "--select", "F", "--select", "I", - "--fix", - "--line-length", "120", - "--exclude", "tests/", "--exclude", "examples/" - ] + args: + [ + "--select", + "E", + "--select", + "F", + "--select", + "I", + "--fix", + "--line-length", + "120", + "--exclude", + "tests/", + "--exclude", + "examples/", + ] - id: ruff-format - args: ["--line-length", "120", "--exclude", "tests/", "--exclude", "examples/"] + args: + [ + "--line-length", + "120", + "--exclude", + "tests/", + "--exclude", + "examples/", + ] - repo: local hooks: