circuitpython/shared-bindings/displayio
Jeff Epler 907c5d387f
Tweak black_bindings
Originally, black_bindings found each contiguous "//|" block and sent
it to black independently. This was slower than it needed to be.

Instead, swap the comment prefix: when running black, take off
"//|" prefixes and put "##|" prefixes on all un-prefixed lines.
Then, after black is run, do the opposite operation

This more than doubles the overall speed of "pre-commit run --all",
from 3m20s to 55s CPU time on my local machine (32.5s to under 10s
"elapsed" time)

It also causes a small amount of churn in the bindings, because
black now sees enough context to know whether one 'def' follows another
or ends the 'def's in a 'class'. In the latter case, it adds an extra
newline, which becomes a "//|" line.

I'm less sure why a trailing comma was omitted before down in
rp2pio/StateMachine.c but let's roll with it.
2022-09-30 11:18:13 -05:00
..
Bitmap.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Bitmap.h Allow a Bitmap to be constructed from a buffer (in C anyway) 2022-08-04 15:11:58 -05:00
ColorConverter.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
ColorConverter.h Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
Colorspace.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Display.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Display.h Remove support for auto-brightness 2022-08-09 22:40:21 -04:00
EPaperDisplay.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
EPaperDisplay.h Add two byte length check 2022-01-14 15:25:40 -07:00
FourWire.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
FourWire.h run code formatting script 2021-03-15 19:27:36 +05:30
Group.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Group.h run code formatting script 2021-03-15 19:27:36 +05:30
I2CDisplay.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
I2CDisplay.h run code formatting script 2021-03-15 19:27:36 +05:30
OnDiskBitmap.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
OnDiskBitmap.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
Palette.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Palette.h add is_transparent getter to displayio.Palette 2021-03-16 20:43:23 -05:00
Shape.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Shape.h run code formatting script 2021-03-15 19:27:36 +05:30
TileGrid.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
TileGrid.h Wi-Fi autoconnect and title bar status 2022-06-09 14:55:54 -07:00
__init__.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
__init__.h Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
area.c Add displayio bitmaps to unix build 2021-11-12 10:47:17 -06:00