Skip to content

Commit db009dd

Browse files
authored
Merge pull request #4601 from hugovk/keep-out-the-tabs
Replace spaces with tabs and add to pre-commit linting
2 parents bd0f7b7 + 94c7af7 commit db009dd

6 files changed

Lines changed: 50 additions & 44 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ repos:
3030
hooks:
3131
- id: check-merge-conflict
3232
- id: check-yaml
33+
34+
- repo: https://github.com/Lucas-C/pre-commit-hooks
35+
rev: v1.1.7
36+
hooks:
37+
- id: remove-tabs
38+
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.opt$)

CHANGES.rst

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5310,23 +5310,23 @@ Pre-fork
53105310
+ Added keyword options to the "save" method. The following options
53115311
are currently supported:
53125312

5313-
format option description
5313+
Format Option Description
53145314
--------------------------------------------------------
5315-
JPEG optimize minimize output file at the
5316-
expense of compression speed.
5315+
JPEG optimize Minimize output file at the
5316+
expense of compression speed.
53175317

5318-
JPEG progressive enable progressive output. the
5319-
option value is ignored.
5318+
JPEG progressive Enable progressive output.
5319+
The option value is ignored.
53205320

5321-
JPEG quality set compression quality (1-100).
5322-
the default value is 75.
5321+
JPEG quality Set compression quality (1-100).
5322+
The default value is 75.
53235323

5324-
JPEG smooth smooth dithered images. value
5325-
is strength (1-100). default is
5326-
off (0).
5324+
JPEG smooth Smooth dithered images.
5325+
Value is strength (1-100).
5326+
Default is off (0).
53275327

5328-
PNG optimize minimize output file at the
5329-
expense of compression speed.
5328+
PNG optimize Minimize output file at the
5329+
expense of compression speed.
53305330

53315331
Expect more options in future releases. Also note that
53325332
file writers silently ignore unknown options.
@@ -5347,31 +5347,31 @@ Pre-fork
53475347
+ Various improvements to the sample scripts:
53485348

53495349
"pilconvert" Carries out some extra tricks in order to make
5350-
the resulting file as small as possible.
5350+
the resulting file as small as possible.
53515351

5352-
"explode" (NEW) Split an image sequence into individual frames.
5352+
"explode" (NEW) Split an image sequence into individual frames.
53535353

5354-
"gifmaker" (NEW) Convert a sequence file into a GIF animation.
5355-
Note that the GIF encoder create "uncompressed" GIF
5356-
files, so animations created by this script are
5357-
rather large (typically 2-5 times the compressed
5358-
sizes).
5354+
"gifmaker" (NEW) Convert a sequence file into a GIF animation.
5355+
Note that the GIF encoder create "uncompressed" GIF
5356+
files, so animations created by this script are
5357+
rather large (typically 2-5 times the compressed
5358+
sizes).
53595359

5360-
"image2py" (NEW) Convert a single image to a python module. See
5361-
comments in this script for details.
5360+
"image2py" (NEW) Convert a single image to a python module. See
5361+
comments in this script for details.
53625362

5363-
"player" If multiple images are given on the command line,
5364-
they are interpreted as frames in a sequence. The
5365-
script assumes that they all have the same size.
5366-
Also note that this script now can play FLI/FLC
5367-
and GIF animations.
5363+
"player" If multiple images are given on the command line,
5364+
they are interpreted as frames in a sequence. The
5365+
script assumes that they all have the same size.
5366+
Also note that this script now can play FLI/FLC
5367+
and GIF animations.
53685368

53695369
This player can also execute embedded Python
53705370
animation applets (ARG format only).
53715371

5372-
"viewer" Transparent images ("P" with transparency property,
5373-
and "RGBA") are superimposed on the standard Tk back-
5374-
ground.
5372+
"viewer" Transparent images ("P" with transparency property,
5373+
and "RGBA") are superimposed on the standard Tk back-
5374+
ground.
53755375

53765376
+ Fixed colour argument to "new". For multilayer images, pass a
53775377
tuple: (Red, Green, Blue), (Red, Green, Blue, Alpha), or (Cyan,

depends/install_extra_test_images.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# Use SVN to just fetch a single Git subdirectory
55
svn_export()
66
{
7-
if [ ! -z $1 ]; then
8-
echo ""
9-
echo "Retrying svn export..."
10-
echo ""
11-
fi
7+
if [ ! -z $1 ]; then
8+
echo ""
9+
echo "Retrying svn export..."
10+
echo ""
11+
fi
1212

13-
svn export --force https://github.com/python-pillow/pillow-depends/trunk/test_images ../Tests/images
13+
svn export --force https://github.com/python-pillow/pillow-depends/trunk/test_images ../Tests/images
1414
}
1515
svn_export || svn_export retry || svn_export retry || svn_export retry

docs/handbook/writing-your-own-file-decoder.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ complete list, see the table in the :py:mod:`Unpack.c` module. The following
179179
table describes some commonly used **raw modes**:
180180

181181
+-----------+-----------------------------------------------------------------+
182-
| mode | description |
182+
| mode | description |
183183
+===========+=================================================================+
184184
| ``1`` | 1-bit bilevel, stored with the leftmost pixel in the most |
185185
| | significant bit. 0 means black, 1 means white. |
@@ -223,7 +223,7 @@ You can use the ``raw`` decoder to read images where data is packed in any
223223
standard machine data type, using one of the following raw modes:
224224

225225
============ =======================================
226-
mode description
226+
mode description
227227
============ =======================================
228228
``F`` 32-bit native floating point.
229229
``F;8`` 8-bit unsigned integer.

docs/reference/Image.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Functions
5858
``warnings.simplefilter('ignore', Image.DecompressionBombWarning)``. See also `the logging
5959
documentation`_ to have warnings output to the logging facility instead of stderr.
6060

61-
.. _decompression bombs: https://en.wikipedia.org/wiki/Zip_bomb
62-
.. _the logging documentation: https://docs.python.org/3/library/logging.html#integration-with-the-warnings-module
61+
.. _decompression bombs: https://en.wikipedia.org/wiki/Zip_bomb
62+
.. _the logging documentation: https://docs.python.org/3/library/logging.html#integration-with-the-warnings-module
6363

6464
Image processing
6565
^^^^^^^^^^^^^^^^

docs/reference/ImageCms.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ can be easily displayed in a chromaticity diagram, for example).
413413
with :py:attr:`.intent_supported`.
414414

415415
:param intent: One of ``ImageCms.INTENT_ABSOLUTE_COLORIMETRIC``,
416-
``ImageCms.INTENT_PERCEPTUAL``,
417-
``ImageCms.INTENT_RELATIVE_COLORIMETRIC``
418-
and ``ImageCms.INTENT_SATURATION``.
416+
``ImageCms.INTENT_PERCEPTUAL``,
417+
``ImageCms.INTENT_RELATIVE_COLORIMETRIC``
418+
and ``ImageCms.INTENT_SATURATION``.
419419
:param direction: One of ``ImageCms.DIRECTION_INPUT``,
420-
``ImageCms.DIRECTION_OUTPUT``
421-
and ``ImageCms.DIRECTION_PROOF``
420+
``ImageCms.DIRECTION_OUTPUT``
421+
and ``ImageCms.DIRECTION_PROOF``
422422
:return: Boolean if the intent and direction is supported.

0 commit comments

Comments
 (0)