@@ -91,6 +91,34 @@ repos:
91
91
args : [--enable=default-role]
92
92
files : ^Doc/|^Misc/NEWS.d/
93
93
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
+
94
122
- repo : local
95
123
hooks :
96
124
- id : blurb-no-space-c-api
0 commit comments