Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

adamchainz/pre-commit-oxipng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oxipng pre-commit mirror

Mirror of oxipng for pre-commit.

Deprecated (2022-01-15)

The official oxipng repository has now merged a .pre-commit-hooks.yaml file, which you can use instead:

- repo: https://github.com/shssoichiro/oxipng
  rev: acdd66b4c5a5fda8b08281ad9b3216327b6847b4
  hooks:
  - id: oxipng

The exact revision is needed at time of writing because there is no new oxipng release. pre-commit autoupdate will update this revision to a tag when there is a new release.

Installation

Add to your pre-commit config:

-   repo: https://github.com/adamchainz/pre-commit-oxipng
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: oxipng

By default all PNG files are passed to oxipng with the default settings, which provides reasonable optimization.

Optimizing all the PNG’s in your repository is expensive and won’t produce results often. You probably want to skip oxipng on your CI system, and run it only on commit. On pre-commit.ci declare it to be skipped like so:

ci:
  skip:
  - oxipng

On other CI systems, use pre-commit’s SKIP environment variable.

About

Mirror of oxipng for pre-commit.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages