circuitpython/shared-bindings/_bleio
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
..
Adapter.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Adapter.h Add BLE status to title bar 2022-08-04 16:33:10 -07:00
Address.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Address.h rename bleio module to _bleio 2019-08-29 18:44:27 -04:00
Attribute.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Attribute.h rename bleio module to _bleio 2019-08-29 18:44:27 -04:00
Characteristic.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Characteristic.h Add BLE serial service 2021-06-25 15:00:10 -07:00
CharacteristicBuffer.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
CharacteristicBuffer.h Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
Connection.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Connection.h rename and improve PacketBuffer packet length property 2020-04-29 17:49:31 -04:00
Descriptor.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Descriptor.h run code formatting script 2021-03-15 19:27:36 +05:30
PacketBuffer.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
PacketBuffer.h Enable a BLE workflow 2021-06-24 12:59:14 -07:00
ScanEntry.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
ScanEntry.h Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
ScanResults.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
ScanResults.h Refine _bleio 2019-10-21 18:57:03 -07:00
Service.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
Service.h Add BLE serial service 2021-06-25 15:00:10 -07:00
UUID.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
UUID.h run code formatting script 2021-03-15 19:27:36 +05:30
__init__.c Tweak black_bindings 2022-09-30 11:18:13 -05:00
__init__.h Add two stage reset for BLE 2022-05-12 13:20:44 -07:00