Commit Graph

27 Commits

Author SHA1 Message Date
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
Jeff Epler
b2cc8d2aad
run black_bindings across all bindings 2022-09-27 15:21:42 -05:00
foamyguy
e92ac0caf4 adding links in docs 2022-07-11 11:04:06 -05:00
Dan Halbert
38e9fd703b add circuitpython_typing. to some annotations; generalize extract_pyi.pi 2022-02-28 21:27:24 -05:00
Randy Hudson
1e03c9dfb9 changed msgpack to use ByteStream type annotations 2022-02-23 21:25:42 -05:00
Jeff Epler
166793f843 circuitpython_stubs: Use circuitpython_typing for cp-specific typing
Installing stubs for a module named `_typing` seems like a dubious
decision.
2021-12-22 11:14:21 -06:00
Dan Halbert
1acafbf675 Fix n_args_min on many MP_DEFINE_CONST_FUN_OBJ_KW() 2021-10-07 16:55:19 -04:00
Rob Capellini
b8f2799609 Convert more modules to use MP_REGISTER_MODULE
Convert bitbangio, bitmaptools, _bleio, board, busio, countio, digitalio, framebufferio, frequencyio, gamepadshift, getpass, keypad, math, microcontroller, and msgpack modules to use MP_REGISTER_MODULE.

Related to #5183.
2021-08-26 21:35:02 -04:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
microDev
a52eb88031
run code formatting script 2021-03-15 19:27:36 +05:30
Scott Shawcroft
cdad59fbc2
Fix doc build with extra blank lines 2021-01-06 09:03:58 -08:00
Bernhard Boser
90a299bb1e added //| to (hopefully) get CI to pass 2021-01-05 11:17:09 -08:00
Bernhard Boser
d29184b5a0 try without ... in docs 2020-12-10 12:15:43 -08:00
Bernhard Boser
6d2329fb09 add blank lines after all comment sections 2020-12-10 10:59:26 -08:00
Bernhard Boser
3c724321d8 cosmetics 2020-12-09 12:01:09 -08:00
Bernhard Boser
a5c3dc286c typing ... 2020-12-08 15:48:56 -08:00
Bernhard Boser
9e7a7b9dc4 uglify typing hints 2020-12-08 14:38:20 -08:00
Bernhard Boser
1f14d39364 remove two extra closing angular brackets 2020-12-08 11:50:45 -08:00
Bernhard Boser
413885a529 fix typspec in function declarations 2020-12-07 17:45:21 -08:00
Bernhard Boser
9903c9e855 fixed (?) typespec for callback functions 2020-12-07 16:50:52 -08:00
Bernhard Boser
5875a27fa8 removed extra triple quote 2020-12-07 16:32:38 -08:00
Bernhard Boser
b5b6b6d0f2 add ExtType, update doc, add a test 2020-12-07 15:40:02 -08:00
Bernhard Boser
44bc75af37
output little endian; update example 2020-12-01 18:38:47 -08:00
Bernhard Boser
f38bd59c6b
added signatures to documenation 2020-12-01 18:38:15 -08:00
Bernhard Boser
e19782633a
removed blanks to make pre-commit check happy 2020-12-01 18:38:14 -08:00
Bernhard Boser
513253bc3f
moved logic to shared-module and added documentation 2020-12-01 18:38:14 -08:00
Bernhard Boser
90c203a3dd
add module msgpack 2020-12-01 18:38:14 -08:00