Skip to content

Commit

Permalink
Added oxipng pre-commit hook to reduce size of static images.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiddiZ committed Feb 23, 2024
1 parent 6a84009 commit 1d11104
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -47,3 +47,13 @@ repos:
args:
- "--tab-width"
- "2"
- repo: https://github.com/shssoichiro/oxipng
rev: v9.0.0
hooks:
- id: oxipng
args:
- "-o"
- "max"
- "--strip"
- "safe"
- "--alpha"
Binary file modified examples/deck_value.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/decklist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion tests/print_test.py
Expand Up @@ -15,7 +15,6 @@ def example_images() -> list[str]:


def test_example_images(example_images: list[str]):

assert len(example_images) == 7


Expand Down

0 comments on commit 1d11104

Please sign in to comment.