Jeff Epler
dfa7c3d32d
codeformat: Fix handling of **
...
After discussing with danh, I noticed that `a/**/b` would not match `a/b`.
After correcting this and re-running "pre-commit run --all", additional
files were reindented, including the codeformat script itself.
2021-04-30 15:30:13 -05:00
Jeff Epler
e95e921ca1
codeformat: Fix filename matching
...
In #4683 , tannewt noticed that uncrustify was not running on some
file in common-hal.
I investigated and found that it was not being run on a bunch of paths.
Rather than make incremental changes, I rewrote list_files to work
bsaed on regular expressions; these regular expressions are created from
the same git-style glob patterns.
I spot-checked some specific filenames after this change, and all looks good:
```
$ python3 tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup extmod/virtpin.c ports/raspberrypi/background.h ports/raspberrypi/common-hal/pulseio/PulseIn.c
black --fast --line-length=99 -v tests/thread/thread_exit1.py
```
recursiveloop and int_small are excluded, while PulseIn, virtpin,
and background are included.
Testing running from a subdirectory (not _specifically_ supported though):
```
(cd ports && python3 ../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c)
../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup ../extmod/virtpin.c raspberrypi/common-hal/pulseio/PulseIn.
```
As a side-effect, a bunch more files are re-formatted now. :-P
2021-04-30 10:48:08 -05:00
Dan Halbert
353e55d710
Merge pull request #4688 from jepler/fix-pixelbuf-subscr
...
objtype: Restore our customized behavior of instance_subscr
2021-04-30 10:45:44 -04:00
Mark
5ef9b10669
Merge pull request #4685 from microDev1/authmode
...
Add AuthMode class
2021-04-29 22:12:58 -05:00
Mark
5679eb4fd7
Merge pull request #4677 from skerr92/add-cp-sapling-rev-b
...
Add cp sapling rev b
2021-04-29 19:22:49 -05:00
Seth Kerr
8b611d4b6b
changing mpconfigboard makefile
2021-04-29 16:45:08 -06:00
Jeff Epler
90bdb25219
ignore some pins to reclaim flash space
2021-04-29 14:36:29 -05:00
Jeff Epler
6498684f5e
ignore some pins to reclaim flash space
2021-04-29 14:30:31 -05:00
Kattni
ad805f5a4e
Merge pull request #4687 from kattni/itsyrp-pin-fix
...
Fix ItsyBitsy RP2040 board definition
2021-04-29 15:14:12 -04:00
Kattni Rembor
4d97680cae
Fix board definition.
2021-04-29 13:45:39 -04:00
Jeff Epler
d1e17fdccc
objtype: Restore our customized behavior of instance_subscr
...
For pixelbuf's [] to be able to call _transmit on the Python subclass,
we need to do the subscripting operation specially.
2021-04-29 11:59:11 -05:00
Kattni Rembor
0bf747870a
Fixing board definition.
2021-04-29 12:41:23 -04:00
Jeff Epler
52589691b8
Merge pull request #4651 from lesamouraipourpre/minor-docs-fixes
...
Minor docs fixes in displayio.Bitmap
2021-04-29 08:12:47 -05:00
microDev
1b972c51c3
add authmode class
2021-04-29 18:42:36 +05:30
Jeff Epler
d035a68c74
Merge pull request #4652 from jposada202020/design_guide_changes
...
Referencing_documentation_other_libraries
2021-04-29 08:10:13 -05:00
Jeff Epler
2a04379540
Merge pull request #4681 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-04-29 08:09:35 -05:00
Seth Kerr
555ade7ff3
final change to ja flags i think
2021-04-28 20:42:13 -06:00
Seth Kerr
8090af07dd
fix ja build issue
2021-04-28 19:14:45 -06:00
Hosted Weblate
04948d5a40
Merge remote-tracking branch 'origin/main' into main
2021-04-29 00:25:37 +02:00
Dan Halbert
b2b6f53112
Merge pull request #4684 from hierophect/nrf-alarm-hotfix
...
NRF: Fix MP type checking macros
2021-04-28 18:25:32 -04:00
Lucian Copeland
5c4500dbfa
Fix MP type macros
2021-04-28 15:35:15 -04:00
Hosted Weblate
9cd255a55d
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-04-28 18:11:43 +02:00
Hosted Weblate
6b41757472
Merge remote-tracking branch 'origin/main' into main
2021-04-28 18:11:40 +02:00
Jonny Bergdahl
9b5d131bf6
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-04-28 18:11:40 +02:00
Wellington Terumi Uemura
4834a21b9c
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-04-28 18:11:40 +02:00
Hugo Dahl
602835a629
Translated using Weblate (French)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-04-28 18:11:39 +02:00
Alvaro Figueroa
bc8b254d4f
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-04-28 18:11:39 +02:00
Reza Almanda
38c6234b84
Translated using Weblate (Indonesian)
...
Currently translated at 46.5% (452 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/id/
2021-04-28 18:11:38 +02:00
Dan Halbert
d4d96bb25f
Merge pull request #4236 from jun2sak/nrf52-sleep
...
sleep and wakeup for nrf52
2021-04-28 12:11:31 -04:00
Seth Kerr
444c008731
removing changes from external flash devices
2021-04-27 17:55:56 -06:00
Seth Kerr
710397fd84
adding board to build.yml
2021-04-27 16:54:13 -06:00
Seth Kerr
2f09535c3a
removing duplicate file
2021-04-27 16:41:54 -06:00
Seth Kerr
e85091193b
adding CP Sapling Rev B
2021-04-27 16:30:44 -06:00
jposada202020
cb42acea53
better_phrasing
2021-04-27 17:43:25 -04:00
jposada202020
a512dd230d
word_order_better_phrasing
2021-04-27 17:34:45 -04:00
jposada202020
4d0e183ae1
Module_description_changes
2021-04-27 17:18:14 -04:00
Jeff Epler
fcabbe90d4
Merge pull request #4675 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-04-27 16:15:10 -05:00
jposada202020
2d80f6b872
Module_description_changes
2021-04-27 17:11:42 -04:00
Hosted Weblate
cbb2ff4ce7
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-04-27 20:02:10 +02:00
Scott Shawcroft
17fcd499b2
Merge pull request #4649 from tannewt/merge_1.11_2
...
Merge MicroPython v1.11 into CircuitPython
2021-04-27 11:02:02 -07:00
Scott Shawcroft
f99deeda68
Merge pull request #4668 from DavePutz/issue_4659
...
Increased possible pulsein length to ~65 ms.
2021-04-27 11:01:51 -07:00
Scott Shawcroft
9e183bbbba
Merge pull request #4674 from kattni/dotstar-pins
...
Adding clearer on-board DotStar pin names.
2021-04-27 10:56:47 -07:00
Melissa LeBlanc-Williams
36f1ac38cb
Merge pull request #4673 from makermelissa/main
...
Release display on FunHouse when entering DeepSleep
2021-04-27 10:15:50 -07:00
Kattni Rembor
4e1d2fa056
Adding clearer on-board DotStar pin names.
2021-04-27 12:52:24 -04:00
Melissa LeBlanc-Williams
d7faac11b8
Release display on FunHouse for DeepSleep
2021-04-27 09:09:23 -07:00
root
91739de71a
Increased max pulse to 65535 us
2021-04-26 18:52:15 -05:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython
2021-04-26 15:47:41 -07:00
Lucian Copeland
43840363c2
Fix submodule
2021-04-26 17:59:21 -04:00
Kattni
65c1ddb570
Merge pull request #4667 from ajs256/trinkey_pixel_fixes
...
Trinkey pixel fixes
2021-04-26 17:19:14 -04:00
root
5bd1da21a2
Increased possible pulsein length to 32 ms.
2021-04-25 21:38:57 -05:00