Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,51 @@ concurrency:
permissions: {}

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0

change-detection:
permissions:
contents: read
pull-requests: read
uses: ./.github/workflows/reusable-change-detection.yml
uses: $/.github/workflows/reusable-change-detection.yml

cookie:
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cookie)
permissions:
contents: read
uses: ./.github/workflows/reusable-cookie.yml
uses: $/.github/workflows/reusable-cookie.yml

rr-tests:
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-rr)
permissions:
contents: read
uses: ./.github/workflows/reusable-rr-tests.yml
uses: $/.github/workflows/reusable-rr-tests.yml

docs:
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-docs)
permissions:
contents: read
uses: ./.github/workflows/reusable-docs.yml
uses: $/.github/workflows/reusable-docs.yml

pass:
if: always()
needs:
- lint
- change-detection
- cookie
- rr-tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-rr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fetch-depth: 0

- name: Run sp-repo-review action
uses: ./
uses: $/

cog:
name: Run cog on README
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.4"
rev: "v0.16.5"
hooks:
- id: ruff-check
args: ["--fix"]
Expand Down Expand Up @@ -60,19 +60,19 @@ repos:
types_or: [yaml, html, css, scss, javascript, json]

- repo: https://github.com/rvben/rumdl-pre-commit
rev: "v0.2.60"
rev: "v0.2.62"
hooks:
- id: rumdl
args: [--no-exclude] # Disable all exclude patterns

- repo: https://github.com/crate-ci/typos
rev: "v1.49.0"
rev: "v1.50.0"
hooks:
- id: typos
exclude: ^Gemfile\.lock$

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: "v1.29.0"
rev: "v1.30.0"
hooks:
- id: zizmor

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ it as a pre-commit hook or as a GitHub Action:

```yaml
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: "v1.29.0"
rev: "v1.30.0"
hooks:
- id: zizmor
```
Expand Down
14 changes: 7 additions & 7 deletions docs/guides/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Here is the snippet to add the formatter to your `.pre-commit-config.yml`

```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.4"
rev: "v0.16.5"
hooks:
# id: ruff-check would go here if using both
- id: ruff-format
Expand Down Expand Up @@ -216,7 +216,7 @@ your code and your docs. Add `markdown` to the `ruff-format` hook's `types_or`:

```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.4"
rev: "v0.16.5"
hooks:
- id: ruff-format
types_or: [python, pyi, jupyter, markdown, pyproject]
Expand Down Expand Up @@ -256,7 +256,7 @@ pre-commit hook.

```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.4"
rev: "v0.16.5"
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -568,7 +568,7 @@ pre-commit config will work:

```yaml
- repo: https://github.com/PyCQA/isort
rev: "8.0.1"
rev: "9.0.1"
hooks:
- id: isort
```
Expand Down Expand Up @@ -672,7 +672,7 @@ with `additional_dependencies`, and pass extra flags via `args`.
:sync: ty
```yaml
- repo: https://github.com/astral-sh/ty-pre-commit
rev: "v0.0.74"
rev: "v0.0.75"
hooks:
- id: ty
```
Expand Down Expand Up @@ -909,7 +909,7 @@ integration.

```yaml
- repo: https://github.com/crate-ci/typos
rev: "v1.49.0"
rev: "v1.50.0"
hooks:
- id: typos
args: []
Expand Down Expand Up @@ -990,7 +990,7 @@ following pre-commit config:

```yaml
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v22.1.8"
rev: "v23.1.0"
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.4"
rev: "v0.16.5"
hooks:
- id: ruff-check
args: ["--fix"]
Expand All @@ -47,7 +47,7 @@ repos:
{%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %}

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v22.1.8"
rev: "v23.1.0"
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand Down Expand Up @@ -113,7 +113,7 @@ repos:
{%- if cookiecutter.__ci == "github" %}

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: "v1.29.0"
rev: "v1.30.0"
hooks:
- id: zizmor
{%- endif %}
Loading