Skip to content

Commit 8b32f32

Browse files
Add exclude
1 parent eec8c98 commit 8b32f32

File tree

69 files changed

+453
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+453
-344
lines changed

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,35 @@ 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/_static/og-image.png|
107+
Doc/library/pathlib-inheritance.png|
108+
Doc/library/tk_msg.png|
109+
Doc/library/hashlib-blake2-tree.png|
110+
Doc/library/turtle-star.png|
111+
Doc/library/kde_example.png|
112+
Doc/using/mac_installer_09_custom_install_free_threaded.png|
113+
Doc/using/win_install_freethreaded.png|
114+
Doc/using/win_installer.png|
115+
Doc/using/mac_installer_*.png|
116+
Tools/msi/bundle/SideBar.png|
117+
Lib/profiling/sampling/_assets/python-logo-only.png|
118+
Lib/test/tkinterdata/python.png|
119+
Lib/test/test_email/data/python.png|
120+
Lib/idlelib/Icons/idle_*.png|
121+
)$
122+
94123
- repo: local
95124
hooks:
96125
- id: blurb-no-space-c-api
-47 Bytes
Loading

Doc/c-api/init_config.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,11 @@ PyConfig
12781278
12791279
Default: ``0``.
12801280
1281+
.. deprecated-removed:: 3.15 3.17
1282+
1283+
The :option:`-b` and :option:`!-bb` options will become no-op in 3.17.
1284+
:c:member:`~PyConfig.bytes_warning` member will be removed in 3.17.
1285+
12811286
.. c:member:: int warn_default_encoding
12821287
12831288
If non-zero, emit a :exc:`EncodingWarning` warning when :class:`io.TextIOWrapper`

Doc/faq/python-video-icon.png

-2.82 KB
Binary file not shown.

Doc/howto/logging_flow.png

-1.04 KB
Loading
-289 Bytes
Loading

Doc/library/kde_example.png

-126 KB
Loading

Doc/library/tk_msg.png

-1.31 KB
Loading

Doc/library/turtle-star.png

-745 Bytes
Loading

Doc/using/cmdline.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ Miscellaneous options
254254
.. versionchanged:: 3.5
255255
Affects also comparisons of :class:`bytes` with :class:`int`.
256256

257+
.. deprecated:: 3.15
258+
259+
Deprecate :option:`-b` and :option:`!-bb` command line options
260+
and schedule them to become no-op in Python 3.17.
261+
These were primarily helpers for the Python 2 -> 3 transition.
262+
Starting with Python 3.17, no :exc:`BytesWarning` will be raised
263+
for these cases; use a type checker instead.
264+
265+
257266
.. option:: -B
258267

259268
If given, Python won't try to write ``.pyc`` files on the

0 commit comments

Comments
 (0)