From: Melissa LeBlanc-Williams Date: Mon, 15 Feb 2021 16:46:51 +0000 (-0800) Subject: Use latest version of black X-Git-Tag: 0.5.6~1^2 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/e2e1c5487fa186fd6cbe0ef79e634d6eabf46c73?ds=inline;hp=--cc Use latest version of black --- e2e1c5487fa186fd6cbe0ef79e634d6eabf46c73 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ba1c3f..2582867 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: source actions-ci/install.sh - name: Pip install pylint, black, & Sphinx run: | - pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme + pip install --force-reinstall pylint black Sphinx sphinx-rtd-theme - name: Library version run: git describe --dirty --always --tags - name: Check formatting diff --git a/displayio/fourwire.py b/displayio/fourwire.py index 64be5c8..219656c 100644 --- a/displayio/fourwire.py +++ b/displayio/fourwire.py @@ -116,8 +116,7 @@ class FourWire: self._spi.write(data) def begin_transaction(self): - """Begin the SPI transaction by locking, configuring, and setting Chip Select - """ + """Begin the SPI transaction by locking, configuring, and setting Chip Select""" while not self._spi.try_lock(): pass self._spi.configure( @@ -126,7 +125,6 @@ class FourWire: self._chip_select.value = False def end_transaction(self): - """End the SPI transaction by unlocking and setting Chip Select - """ + """End the SPI transaction by unlocking and setting Chip Select""" self._chip_select.value = True self._spi.unlock() diff --git a/displayio/tilegrid.py b/displayio/tilegrid.py index 5806253..548e456 100644 --- a/displayio/tilegrid.py +++ b/displayio/tilegrid.py @@ -243,7 +243,9 @@ class TileGrid: tile_count_x = bitmap_width // tile_width image = Image.new( - "RGBA", (width * tile_width, height * tile_height), (0, 0, 0, 0), + "RGBA", + (width * tile_width, height * tile_height), + (0, 0, 0, 0), ) for tile_x in range(width): @@ -263,7 +265,10 @@ class TileGrid: image.alpha_composite( tile_image, dest=(tile_x * tile_width, tile_y * tile_height), - source=(tile_index_x * tile_width, tile_index_y * tile_height,), + source=( + tile_index_x * tile_width, + tile_index_y * tile_height, + ), ) if absolute_transform is not None: diff --git a/setup.py b/setup.py index 4070f70..0a8fc6b 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,12 @@ setup( # Author details author="Adafruit Industries", author_email="circuitpython@adafruit.com", - install_requires=["Adafruit-Blinka", "pillow", "numpy", "recordclass",], + install_requires=[ + "Adafruit-Blinka", + "pillow", + "numpy", + "recordclass", + ], # Choose your license license="MIT", # See https://pypi.python.org/pypi?%3Aaction=list_classifiers