Skip to content

Commit c214244

Browse files
Commit
1 parent 5560ab6 commit c214244

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,34 @@ repos:
9191
args: [--enable=default-role]
9292
files: ^Doc/|^Misc/NEWS.d/
9393

94+
- repo: https://github.com/oxipng/oxipng
95+
rev: v9.1.5
96+
hooks:
97+
- id: oxipng
98+
args: [ "-o", "2", "--strip", "safe", "--alpha" ]
99+
exclude: |
100+
(?x)^(
101+
PC/icons/[^/]*\.png|
102+
Android/testbed/app/src/main/res/drawable-xxhdpi/ic_launcher\.png|
103+
Objects/object_layout_[^/]*\.png|
104+
InternalDocs/images/python-cyclic-gc-[^/]*-new-page\.png|
105+
Doc/howto/logging_flow\.png|
106+
Doc/library/pathlib-inheritance\.png|
107+
Doc/library/tk_msg\.png|
108+
Doc/library/hashlib-blake2-tree\.png|
109+
Doc/library/turtle-star\.png|
110+
Doc/library/kde_example\.png|
111+
Doc/using/mac_installer_09_custom_install_free_threaded\.png|
112+
Doc/using/win_install_freethreaded\.png|
113+
Doc/using/win_installer\.png|
114+
Doc/using/mac_installer_[^/]*\.png|
115+
Tools/msi/bundle/SideBar\.png|
116+
Lib/profiling/sampling/_assets/python-logo-only\.png|
117+
Lib/test/tkinterdata/python\.png|
118+
Lib/test/test_email/data/python\.png|
119+
Lib/idlelib/Icons/idle_[^/]*\.png|
120+
)$
121+
94122
- repo: local
95123
hooks:
96124
- id: blurb-no-space-c-api

0 commit comments

Comments
 (0)