Skip to content

Commit 9e82ba9

Browse files
committed
Add oxipng to pre-commit checks
1 parent 632d350 commit 9e82ba9

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/linting.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
python-version: "3.x"
2121
- uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4
2222
with:
23-
extra-args: --hook-stage manual --all-files
23+
extra-args: --hook-stage manual --all-files --skip oxipng
24+
# Only run oxipng on the last diff, because we haven't updated all images.
25+
- uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4
26+
with:
27+
extra-args: --hook-stage manual --from-ref origin/${{ github.base_ref }} oxipng
2428

2529
ruff:
2630
name: ruff

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,7 @@ repos:
135135
name: "Validate Conda environment file"
136136
files: ^environment\.yml$
137137
args: ["--verbose", "--schemafile", "ci/schemas/conda-environment.json"]
138+
- repo: https://github.com/shssoichiro/oxipng
139+
rev: d54e7c04ea58170167d95d9b2b2ec07571602fe2 # frozen: v10.1.0
140+
hooks:
141+
- id: oxipng

0 commit comments

Comments
 (0)