We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 732cf08 commit 0b9a6dbCopy full SHA for 0b9a6db
2 files changed
.pre-commit-config.yaml
@@ -7,3 +7,12 @@ repos:
7
args: [--select=I001, --fix]
8
# Run the formatter.
9
- id: ruff-format
10
+ - repo: local
11
+ hooks:
12
+ # Requires the oxipng binary on PATH:
13
+ # brew install oxipng (or: cargo install oxipng)
14
+ - id: oxipng
15
+ name: optimize baseline images
16
+ entry: oxipng -o 4 --strip safe
17
+ language: system
18
+ files: ^tests/baseline_images/.*\.png$
README.md
@@ -138,6 +138,7 @@ Development version
138
139
```console
140
$ pip install git+https://github.com/has2k1/plotnine.git
141
+$ brew install oxipng # Test image optimiser (OR `cargo install oxipng`)
142
```
143
144
## Contributing
0 commit comments