From 47dd20678d0b44fb86f44d9455b138104a1ece2d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 19:49:33 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/Lucas-C/pre-commit-hooks: v1.5.3 → v1.5.4](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.3...v1.5.4) - [github.com/sphinx-contrib/sphinx-lint: v0.6.7 → v0.6.8](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.6.7...v0.6.8) - [github.com/tox-dev/pyproject-fmt: 0.13.0 → 1.1.0](https://github.com/tox-dev/pyproject-fmt/compare/0.13.0...1.1.0) - [github.com/abravalheri/validate-pyproject: v0.13 → v0.14](https://github.com/abravalheri/validate-pyproject/compare/v0.13...v0.14) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5354509d42e..460661166d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: yesqa - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.3 + rev: v1.5.4 hooks: - id: remove-tabs exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$) @@ -50,17 +50,17 @@ repos: - id: check-yaml - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v0.6.7 + rev: v0.6.8 hooks: - id: sphinx-lint - repo: https://github.com/tox-dev/pyproject-fmt - rev: 0.13.0 + rev: 1.1.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.13 + rev: v0.14 hooks: - id: validate-pyproject From beb5048adb896df3504852006aef5e0b0c6981f8 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 4 Sep 2023 23:56:41 +0300 Subject: [PATCH 2/2] Fix sphinx-lint: Line ends with dangling hyphen (dangling-hyphen) --- CHANGES.rst | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 4a7b5ba5e14..12f266d1b9b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5771,8 +5771,8 @@ http://svn.effbot.org/public/pil/ a polyline, independent of line angle. - Fixed bearing calculation and clipping in the ImageFont truetype - renderer; this could lead to clipped text, or crashes in the low- - level _imagingft module. (based on input from Adam Twardoch and + renderer; this could lead to clipped text, or crashes in the low-level + _imagingft module. (based on input from Adam Twardoch and others). - Added ImageQt wrapper module, for converting PIL Image objects to @@ -5853,8 +5853,7 @@ http://svn.effbot.org/public/pil/ 1.1.5c2 and 1.1.5 final ----------------------- -- Added experimental PERSPECTIVE transform method (from Jeff Breiden- - bach). +- Added experimental PERSPECTIVE transform method (from Jeff Breidenbach). 1.1.5c1 ------- @@ -5926,8 +5925,8 @@ http://svn.effbot.org/public/pil/ - Fixed BILINEAR/BICUBIC/ANTIALIAS filtering for mode "LA". -- Added "getcolors()" method. This is similar to the existing histo- - gram method, but looks at color values instead of individual layers, +- Added "getcolors()" method. This is similar to the existing histogram + method, but looks at color values instead of individual layers, and returns an unsorted list of (count, color) tuples. By default, the method returns None if finds more than 256 colors. @@ -6143,8 +6142,8 @@ http://svn.effbot.org/public/pil/ - Added limited support for "bitfield compression" in BMP files and DIB buffers, for 15-bit, 16-bit, and 32-bit images. This - also fixes a problem with ImageGrab module when copying screen- - dumps from the clipboard on 15/16/32-bit displays. + also fixes a problem with ImageGrab module when copying screendumps + from the clipboard on 15/16/32-bit displays. - Added experimental WAL (Quake 2 textures) loader. To use this loader, import WalImageFile and call the "open" method in that @@ -6255,8 +6254,8 @@ http://svn.effbot.org/public/pil/ 1.1.3 final ----------- -- Made setup.py look for old versions of zlib. For some back- - ground, see: https://zlib.net/advisory-2002-03-11.txt +- Made setup.py look for old versions of zlib. For some background, + see: https://zlib.net/advisory-2002-03-11.txt 1.1.3c2 ------- @@ -6447,8 +6446,8 @@ http://svn.effbot.org/public/pil/ supports all major PIL image modes (including F and I). - The ImageFile module now includes a Parser class, which can - be used to incrementally decode an image file (while down- - loading it from the net, for example). See the handbook for + be used to incrementally decode an image file (while downloading + it from the net, for example). See the handbook for details. - "show" now converts non-standard modes to "L" or "RGB" (as @@ -6586,8 +6585,8 @@ http://svn.effbot.org/public/pil/ - The Image "transform" method now supports Image.QUAD transforms. The data argument is an 8-tuple giving the upper left, lower - left, lower right, and upper right corner of the source quadri- - lateral. Also added Image.MESH transform which takes a list + left, lower right, and upper right corner of the source quadrilateral. + Also added Image.MESH transform which takes a list of quadrilaterals. - The Image "resize", "rotate", and "transform" methods now support @@ -6812,8 +6811,8 @@ The test suite includes 400 individual tests. neither "short", "int" nor "long" are 32-bit wide. - Added file= and data= keyword arguments to PhotoImage and BitmapImage. - This allows you to use them as drop-in replacements for the corre- - sponding Tkinter classes. + This allows you to use them as drop-in replacements for the corresponding + Tkinter classes. - Removed bogus references to the crack coder (ImagingCrack).