circuitpython/ports/atmel-samd/boards
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
..
8086_commander Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
adafruit_neokey_trinkey_m0 try re-enabling storage 2021-04-12 22:17:20 -04:00
adafruit_proxlight_trinkey_m0 Trinkeys: Clear neopixels on board reset 2021-04-25 12:58:52 -07:00
adafruit_rotary_trinkey_m0 try re-enabling storage 2021-04-12 22:17:20 -04:00
adafruit_slide_trinkey_m0 codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
aloriumtech_evo_m51 run code formatting script 2021-03-15 19:27:36 +05:30
arduino_mkr1300 run code formatting script 2021-03-15 19:27:36 +05:30
arduino_mkrzero set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
arduino_nano_33_iot run code formatting script 2021-03-15 19:27:36 +05:30
arduino_zero run code formatting script 2021-03-15 19:27:36 +05:30
bast_pro_mini_m0 run code formatting script 2021-03-15 19:27:36 +05:30
bdmicro_vina_d21 run code formatting script 2021-03-15 19:27:36 +05:30
bdmicro_vina_d51 boards/bdmicro_vina_d51: Replace old rev with new rev and rename. 2021-04-07 09:11:30 -04:00
bdmicro_vina_d51_pcb7 boards/bdmicro_vina_d51: Replace old rev with new rev and rename. 2021-04-07 09:11:30 -04:00
blm_badge Adding LED for D13/L pin name. 2021-03-16 12:14:40 -04:00
capablerobot_usbhub Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
catwan_usbstick run code formatting script 2021-03-15 19:27:36 +05:30
circuitbrains_basic_m0 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
circuitbrains_deluxe_m4 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
circuitplayground_express Adding LED for D13/L pin name. 2021-03-16 12:14:40 -04:00
circuitplayground_express_crickit Adding LED for D13/L pin name. 2021-03-16 12:14:40 -04:00
circuitplayground_express_displayio Adding LED for D13/L pin name. 2021-03-16 12:14:40 -04:00
cp32-m4 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
cp_sapling_m0 run code formatting script 2021-03-15 19:27:36 +05:30
cp_sapling_m0_revb changing mpconfigboard makefile 2021-04-29 16:45:08 -06:00
cp_sapling_m0_spiflash disable bitmaptools on small board 2021-03-16 19:04:21 -05:00
datalore_ip_m4 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
datum_distance run code formatting script 2021-03-15 19:27:36 +05:30
datum_imu run code formatting script 2021-03-15 19:27:36 +05:30
datum_light run code formatting script 2021-03-15 19:27:36 +05:30
datum_weather run code formatting script 2021-03-15 19:27:36 +05:30
dynalora_usb Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
dynossat_edu_eps run code formatting script 2021-03-15 19:27:36 +05:30
dynossat_edu_obc run code formatting script 2021-03-15 19:27:36 +05:30
escornabot_makech run code formatting script 2021-03-15 19:27:36 +05:30
feather_m0_adalogger Update mpconfigboard.h 2021-04-17 20:15:04 -05:00
feather_m0_basic run code formatting script 2021-03-15 19:27:36 +05:30
feather_m0_express ignore some pins to reclaim flash space 2021-04-29 14:30:31 -05:00
feather_m0_express_crickit run code formatting script 2021-03-15 19:27:36 +05:30
feather_m0_rfm9x run code formatting script 2021-03-15 19:27:36 +05:30
feather_m0_rfm69 run code formatting script 2021-03-15 19:27:36 +05:30
feather_m0_supersized Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
feather_m4_can Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
feather_m4_express Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
feather_radiofruit_zigbee Merge remote-tracking branch 'origin/main' into bitmap-read-2 2021-03-16 12:21:50 -05:00
fluff_m0 run code formatting script 2021-03-15 19:27:36 +05:30
gemma_m0 Adding clearer on-board DotStar pin names. 2021-04-27 12:52:24 -04:00
grandcentral_m4_express WIP: Implement 'ParallelImageCapture' for samd51 2021-04-16 17:18:59 -05:00
hallowing_m0_express Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
hallowing_m4_express run code formatting script 2021-03-15 19:27:36 +05:30
huntercat_nfc Update comment 2021-04-04 11:10:32 -05:00
itsybitsy_m0_express Merge pull request #4649 from tannewt/merge_1.11_2 2021-04-27 11:02:02 -07:00
itsybitsy_m4_express Adding clearer on-board DotStar pin names. 2021-04-27 12:52:24 -04:00
kicksat-sprite run code formatting script 2021-03-15 19:27:36 +05:30
loc_ber_m4_base_board Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
matrixportal_m4 Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
meowmeow run code formatting script 2021-03-15 19:27:36 +05:30
metro_m0_express Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
metro_m4_airlift_lite Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
metro_m4_express Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
mini_sam_m4 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
monster_m4sk run code formatting script 2021-03-15 19:27:36 +05:30
ndgarage_ndbit6 set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
ndgarage_ndbit6_v2 set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
neopixel_trinkey_m0 Trinkeys: Clear neopixels on board reset 2021-04-25 12:58:52 -07:00
nfc_copy_cat run code formatting script 2021-03-15 19:27:36 +05:30
openbook_m4 run code formatting script 2021-03-15 19:27:36 +05:30
pewpew10 set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
pewpew_m4 Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
picoplanet run code formatting script 2021-03-15 19:27:36 +05:30
pirkey_m0 Adding clearer on-board DotStar pin names. 2021-04-27 12:52:24 -04:00
pybadge run code formatting script 2021-03-15 19:27:36 +05:30
pybadge_airlift run code formatting script 2021-03-15 19:27:36 +05:30
pycubed run code formatting script 2021-03-15 19:27:36 +05:30
pycubed_mram run code formatting script 2021-03-15 19:27:36 +05:30
pygamer run code formatting script 2021-03-15 19:27:36 +05:30
pygamer_advance run code formatting script 2021-03-15 19:27:36 +05:30
pyportal Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
pyportal_titano Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
pyruler Adding clearer on-board DotStar pin names. 2021-04-27 12:52:24 -04:00
qtpy_m0 set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
qtpy_m0_haxpress Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
robohatmm1_m4 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
sam32 run code formatting script 2021-03-15 19:27:36 +05:30
same54_xplained run code formatting script 2021-03-15 19:27:36 +05:30
seeeduino_wio_terminal Fix SD_DET pin assignment of seeduino_wio_terminal. 2021-04-01 17:09:56 +09:00
seeeduino_xiao shrink a couple of builds 2021-02-04 22:15:32 -05:00
sensebox_mcu reorder alias 2021-04-09 08:35:13 +02:00
serpente Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
shirtty set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
silicognition-m4-shim Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
snekboard ignore some pins to reclaim flash space 2021-04-29 14:36:29 -05:00
sparkfun_lumidrive Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
sparkfun_qwiic_micro_no_flash run code formatting script 2021-03-15 19:27:36 +05:30
sparkfun_qwiic_micro_with_flash run code formatting script 2021-03-15 19:27:36 +05:30
sparkfun_redboard_turbo run code formatting script 2021-03-15 19:27:36 +05:30
sparkfun_samd21_dev set SUPEROPT_VM = 0 on most non-Express SAMD21 boards 2021-02-22 23:03:11 -05:00
sparkfun_samd21_mini fix some builds 2021-02-18 14:24:58 -05:00
sparkfun_samd51_thing_plus Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
stackrduino_m0_pro Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
stringcar_m0_express Automatically count EXTERNAL_FLASH_DEVICES 2021-03-07 11:48:39 -06:00
trellis_m4_express Adding clearer on-board DotStar pin names. 2021-04-27 12:52:24 -04:00
trinket_m0 Adding clearer on-board DotStar pin names. 2021-04-27 12:52:24 -04:00
trinket_m0_haxpress Merge pull request #4649 from tannewt/merge_1.11_2 2021-04-27 11:02:02 -07:00
uartlogger2 Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
uchip run code formatting script 2021-03-15 19:27:36 +05:30
ugame10 run code formatting script 2021-03-15 19:27:36 +05:30
winterbloom_big_honking_button run code formatting script 2021-03-15 19:27:36 +05:30
winterbloom_sol Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
xinabox_cc03 run code formatting script 2021-03-15 19:27:36 +05:30
xinabox_cs11 run code formatting script 2021-03-15 19:27:36 +05:30
common.template.ld common.template.ld: remove unneeded line 2020-09-21 16:44:26 -05:00