circuitpython/shared-bindings
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
..
__future__ add annotations to __future__; don't generate __future__ stubs 2022-03-10 11:19:35 -05:00
_bleio Tweak black_bindings 2022-09-30 11:18:13 -05:00
_eve Tweak black_bindings 2022-09-30 11:18:13 -05:00
_pew Tweak black_bindings 2022-09-30 11:18:13 -05:00
_stage Tweak black_bindings 2022-09-30 11:18:13 -05:00
adafruit_bus_device Tweak black_bindings 2022-09-30 11:18:13 -05:00
adafruit_pixelbuf Tweak black_bindings 2022-09-30 11:18:13 -05:00
aesio Tweak black_bindings 2022-09-30 11:18:13 -05:00
alarm Tweak black_bindings 2022-09-30 11:18:13 -05:00
analogbufio Tweak black_bindings 2022-09-30 11:18:13 -05:00
analogio Tweak black_bindings 2022-09-30 11:18:13 -05:00
atexit Tweak black_bindings 2022-09-30 11:18:13 -05:00
audiobusio Tweak black_bindings 2022-09-30 11:18:13 -05:00
audiocore Tweak black_bindings 2022-09-30 11:18:13 -05:00
audioio Tweak black_bindings 2022-09-30 11:18:13 -05:00
audiomixer Tweak black_bindings 2022-09-30 11:18:13 -05:00
audiomp3 Tweak black_bindings 2022-09-30 11:18:13 -05:00
audiopwmio Tweak black_bindings 2022-09-30 11:18:13 -05:00
bitbangio Tweak black_bindings 2022-09-30 11:18:13 -05:00
bitmaptools Tweak black_bindings 2022-09-30 11:18:13 -05:00
bitops Tweak black_bindings 2022-09-30 11:18:13 -05:00
board Tweak black_bindings 2022-09-30 11:18:13 -05:00
busio Tweak black_bindings 2022-09-30 11:18:13 -05:00
camera Tweak black_bindings 2022-09-30 11:18:13 -05:00
canio Tweak black_bindings 2022-09-30 11:18:13 -05:00
countio Tweak black_bindings 2022-09-30 11:18:13 -05:00
digitalio Tweak black_bindings 2022-09-30 11:18:13 -05:00
displayio Tweak black_bindings 2022-09-30 11:18:13 -05:00
dotenv Tweak black_bindings 2022-09-30 11:18:13 -05:00
dualbank Tweak black_bindings 2022-09-30 11:18:13 -05:00
floppyio Tweak black_bindings 2022-09-30 11:18:13 -05:00
fontio Tweak black_bindings 2022-09-30 11:18:13 -05:00
framebufferio Tweak black_bindings 2022-09-30 11:18:13 -05:00
frequencyio Tweak black_bindings 2022-09-30 11:18:13 -05:00
getpass Tweak black_bindings 2022-09-30 11:18:13 -05:00
gifio Tweak black_bindings 2022-09-30 11:18:13 -05:00
gnss Tweak black_bindings 2022-09-30 11:18:13 -05:00
hashlib Tweak black_bindings 2022-09-30 11:18:13 -05:00
i2ctarget Tweak black_bindings 2022-09-30 11:18:13 -05:00
imagecapture Tweak black_bindings 2022-09-30 11:18:13 -05:00
ipaddress Tweak black_bindings 2022-09-30 11:18:13 -05:00
is31fl3741 Tweak black_bindings 2022-09-30 11:18:13 -05:00
keypad Tweak black_bindings 2022-09-30 11:18:13 -05:00
math Tweak black_bindings 2022-09-30 11:18:13 -05:00
mdns Tweak black_bindings 2022-09-30 11:18:13 -05:00
memorymonitor Tweak black_bindings 2022-09-30 11:18:13 -05:00
microcontroller Tweak black_bindings 2022-09-30 11:18:13 -05:00
msgpack Tweak black_bindings 2022-09-30 11:18:13 -05:00
multiterminal Tweak black_bindings 2022-09-30 11:18:13 -05:00
neopixel_write Tweak black_bindings 2022-09-30 11:18:13 -05:00
nvm Tweak black_bindings 2022-09-30 11:18:13 -05:00
onewireio Tweak black_bindings 2022-09-30 11:18:13 -05:00
os Tweak black_bindings 2022-09-30 11:18:13 -05:00
paralleldisplay Tweak black_bindings 2022-09-30 11:18:13 -05:00
ps2io Tweak black_bindings 2022-09-30 11:18:13 -05:00
pulseio Tweak black_bindings 2022-09-30 11:18:13 -05:00
pwmio Tweak black_bindings 2022-09-30 11:18:13 -05:00
qrio Tweak black_bindings 2022-09-30 11:18:13 -05:00
rainbowio Tweak black_bindings 2022-09-30 11:18:13 -05:00
random Tweak black_bindings 2022-09-30 11:18:13 -05:00
rgbmatrix Tweak black_bindings 2022-09-30 11:18:13 -05:00
rotaryio Tweak black_bindings 2022-09-30 11:18:13 -05:00
rtc Tweak black_bindings 2022-09-30 11:18:13 -05:00
sdcardio Tweak black_bindings 2022-09-30 11:18:13 -05:00
sdioio Tweak black_bindings 2022-09-30 11:18:13 -05:00
sharpdisplay run black_bindings across all bindings 2022-09-27 15:21:42 -05:00
socketpool Tweak black_bindings 2022-09-30 11:18:13 -05:00
ssl Tweak black_bindings 2022-09-30 11:18:13 -05:00
storage Tweak black_bindings 2022-09-30 11:18:13 -05:00
struct Tweak black_bindings 2022-09-30 11:18:13 -05:00
supervisor Tweak black_bindings 2022-09-30 11:18:13 -05:00
synthio Tweak black_bindings 2022-09-30 11:18:13 -05:00
terminalio Tweak black_bindings 2022-09-30 11:18:13 -05:00
time Tweak black_bindings 2022-09-30 11:18:13 -05:00
touchio Tweak black_bindings 2022-09-30 11:18:13 -05:00
traceback Tweak black_bindings 2022-09-30 11:18:13 -05:00
uheap Tweak black_bindings 2022-09-30 11:18:13 -05:00
usb Tweak black_bindings 2022-09-30 11:18:13 -05:00
usb_cdc Tweak black_bindings 2022-09-30 11:18:13 -05:00
usb_hid Tweak black_bindings 2022-09-30 11:18:13 -05:00
usb_host Tweak black_bindings 2022-09-30 11:18:13 -05:00
usb_midi Tweak black_bindings 2022-09-30 11:18:13 -05:00
ustack Tweak black_bindings 2022-09-30 11:18:13 -05:00
vectorio Tweak black_bindings 2022-09-30 11:18:13 -05:00
watchdog Tweak black_bindings 2022-09-30 11:18:13 -05:00
wifi Tweak black_bindings 2022-09-30 11:18:13 -05:00
zlib Tweak black_bindings 2022-09-30 11:18:13 -05:00
help.rst Apply a Sphinx transform to make the core module docs look better 2020-08-07 00:01:31 +09:00
index.rst docs: Improve 5.0.x <-> main branch doc linkrot 2020-06-14 11:12:35 -05:00
support_matrix.rst list extensions instead of macros names ("bin,uf2" not BIN_UF2) 2022-07-26 18:15:59 +02:00
util.c Conditionalize LTO 2022-05-27 12:59:54 -07:00
util.h Refactor deinit check to reduce code size. 2019-06-12 11:36:43 -07:00