Skip to content

Commit

Permalink
ci: Add manual workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
strakam committed Oct 13, 2024
1 parent c6d85fb commit adae14e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: pre-commit hooks
on:
push:

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -23,4 +25,6 @@ jobs:
- name: Run pre-commit hooks
run: |
pre-commit clean
pre-commit install --install-hooks
pre-commit run --all-files
31 changes: 25 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit adae14e

Please sign in to comment.