Skip to content

Commit

Permalink
ENH: make PR linting available as workflow call (#64)
Browse files Browse the repository at this point in the history
* MAINT: autoupdate pre-commit hooks
* MAINT: remove redundant quotation marks
  • Loading branch information
redeboer authored Mar 7, 2024
1 parent 50d4acf commit 788fc7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: PR linting
on:
workflow_call:
pull_request:
types:
- edited
Expand Down
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.3.1
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -49,12 +49,13 @@ repos:
- --in-place

- repo: https://github.com/ComPWA/policy
rev: 0.2.6
rev: 0.2.7
hooks:
- id: check-dev-files
args:
- --allow-deprecated-workflows
- --dependabot=update
- --keep-pr-linting
- --no-notebooks
- --no-prettierrc
- --no-pypi
Expand All @@ -63,7 +64,7 @@ repos:
- --repo-title=ComPWA actions and shared workflows

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.5.0
rev: v8.6.0
hooks:
- id: cspell

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ dependencies:
- pip:
- -e .[dev]
variables:
PRETTIER_LEGACY_CLI: "1"
PRETTIER_LEGACY_CLI: 1

0 comments on commit 788fc7d

Please sign in to comment.