circuitpython/ports/raspberrypi/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
..
adafruit_feather_rp2040 Redo RP2040 flash settings 2021-03-18 16:55:42 -07:00
adafruit_itsybitsy_rp2040 Fix board definition. 2021-04-29 13:45:39 -04:00
adafruit_qtpy_rp2040 Merge pull request #4577 from dglaude/patch-1 2021-04-09 13:10:19 -04:00
pimoroni_keybow2040 Improve Winbond naming and correct board settings 2021-03-23 09:06:48 -07:00
pimoroni_picolipo_4mb Tweaked board name 2021-04-19 10:38:07 +01:00
pimoroni_picolipo_16mb Tweaked board name 2021-04-19 10:38:07 +01:00
pimoroni_picosystem Improve Winbond naming and correct board settings 2021-03-23 09:06:48 -07:00
pimoroni_tiny2040 Improve Winbond naming and correct board settings 2021-03-23 09:06:48 -07:00
raspberry_pi_pico Add VBUS_SENSE (GP24) to board 2021-04-17 08:51:20 -04:00
sparkfun_micromod_rp2040 codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
sparkfun_pro_micro_rp2040 Improve Winbond naming and correct board settings 2021-03-23 09:06:48 -07:00
sparkfun_thing_plus_rp2040 Improve Winbond naming and correct board settings 2021-03-23 09:06:48 -07:00