Skip to content

Commit 8ef6d0c

Browse files
committed
Merge remote-tracking branch 'upstream/main' into main
2 parents 361cb1c + b1f4a9a commit 8ef6d0c

File tree

306 files changed

+10186
-6103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+10186
-6103
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,3 @@ TimeoutError: Clock stretch too long
5252

5353
<!-- Optionally, add any other information like hardware connection, scope output etc.
5454
If you have already done some debugging, mention it here. -->
55-
56-
Removing [this](url) line resolves the issue.

.github/workflows/build.yml

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
sudo apt-get update
3939
sudo apt-get install -y eatmydata
4040
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
41-
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli mypy
41+
pip install -r requirements-dev.txt
4242
- name: Versions
4343
run: |
4444
gcc --version
@@ -132,15 +132,6 @@ jobs:
132132
env:
133133
GITHUB_CONTEXT: ${{ toJson(github) }}
134134
run: echo "$GITHUB_CONTEXT"
135-
- name: Install dependencies
136-
run: |
137-
brew install gettext
138-
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
139-
- name: Versions
140-
run: |
141-
gcc --version
142-
python3 --version
143-
msgfmt --version
144135
- uses: actions/[email protected]
145136
with:
146137
submodules: true
@@ -150,6 +141,15 @@ jobs:
150141
run: |
151142
git describe --dirty --tags
152143
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
144+
- name: Install dependencies
145+
run: |
146+
brew install gettext
147+
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
148+
- name: Versions
149+
run: |
150+
gcc --version
151+
python3 --version
152+
msgfmt --version
153153
- name: Build mpy-cross
154154
run: make -C mpy-cross -j2
155155
- uses: actions/upload-artifact@v2
@@ -177,6 +177,12 @@ jobs:
177177
- "ADM_B_NRF52840_1"
178178
- "TG-Watch"
179179
- "adafruit_feather_rp2040"
180+
- "adafruit_itsybitsy_rp2040"
181+
- "adafruit_neokey_trinkey_m0"
182+
- "adafruit_proxlight_trinkey_m0"
183+
- "adafruit_qtpy_rp2040"
184+
- "adafruit_rotary_trinkey_m0"
185+
- "adafruit_slide_trinkey_m0"
180186
- "aloriumtech_evo_m51"
181187
- "aramcon_badge_2019"
182188
- "arduino_mkr1300"
@@ -188,6 +194,7 @@ jobs:
188194
- "bastble"
189195
- "bdmicro_vina_d21"
190196
- "bdmicro_vina_d51"
197+
- "bdmicro_vina_d51_pcb7"
191198
- "bless_dev_board_multi_sensor"
192199
- "blm_badge"
193200
- "capablerobot_usbhub"
@@ -237,6 +244,7 @@ jobs:
237244
- "hallowing_m0_express"
238245
- "hallowing_m4_express"
239246
- "hiibot_bluefi"
247+
- "huntercat_nfc"
240248
- "ikigaisense_vita"
241249
- "imxrt1010_evk"
242250
- "imxrt1020_evk"
@@ -298,14 +306,14 @@ jobs:
298306
- "pyruler"
299307
- "qtpy_m0"
300308
- "qtpy_m0_haxpress"
301-
- "qtpy_rp2040"
302309
- "raspberry_pi_pico"
303310
- "raytac_mdbt50q-db-40"
304311
- "robohatmm1_m4"
305312
- "sam32"
306313
- "same54_xplained"
307314
- "seeeduino_wio_terminal"
308315
- "seeeduino_xiao"
316+
- "sensebox_mcu"
309317
- "serpente"
310318
- "shirtty"
311319
- "silicognition-m4-shim"
@@ -314,12 +322,14 @@ jobs:
314322
- "sparkfun_lumidrive"
315323
- "sparkfun_nrf52840_micromod"
316324
- "sparkfun_nrf52840_mini"
325+
- "sparkfun_pro_micro_rp2040"
317326
- "sparkfun_qwiic_micro_no_flash"
318327
- "sparkfun_qwiic_micro_with_flash"
319328
- "sparkfun_redboard_turbo"
320329
- "sparkfun_samd21_dev"
321330
- "sparkfun_samd21_mini"
322331
- "sparkfun_samd51_thing_plus"
332+
- "sparkfun_thing_plus_rp2040"
323333
- "spresense"
324334
- "stackrduino_m0_pro"
325335
- "stm32f411ce_blackpill"
@@ -351,22 +361,22 @@ jobs:
351361
uses: actions/setup-python@v1
352362
with:
353363
python-version: 3.8
364+
- uses: actions/[email protected]
365+
with:
366+
submodules: true
367+
fetch-depth: 0
368+
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
354369
- name: Install deps
355370
run: |
356371
sudo apt-get install -y gettext
357-
pip install requests sh click setuptools awscli
372+
pip install -r requirements-dev.txt
358373
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
359374
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
360375
- name: Versions
361376
run: |
362377
gcc --version
363378
arm-none-eabi-gcc --version
364379
python3 --version
365-
- uses: actions/[email protected]
366-
with:
367-
submodules: true
368-
fetch-depth: 0
369-
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
370380
- name: mpy-cross
371381
run: make -C mpy-cross -j2
372382
- name: build
@@ -400,6 +410,11 @@ jobs:
400410
uses: actions/setup-python@v1
401411
with:
402412
python-version: 3.8
413+
- uses: actions/[email protected]
414+
with:
415+
submodules: true
416+
fetch-depth: 0
417+
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
403418
- name: Install deps
404419
run: |
405420
sudo apt-get install -y gettext
@@ -411,11 +426,6 @@ jobs:
411426
gcc --version
412427
riscv64-unknown-elf-gcc --version
413428
python3 --version
414-
- uses: actions/[email protected]
415-
with:
416-
submodules: true
417-
fetch-depth: 0
418-
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
419429
- name: mpy-cross
420430
run: make -C mpy-cross -j2
421431
- name: build
@@ -443,8 +453,10 @@ jobs:
443453
board:
444454
- "adafruit_feather_esp32s2_nopsram"
445455
- "adafruit_feather_esp32s2_tftback_nopsram"
456+
- "adafruit_funhouse"
446457
- "adafruit_magtag_2.9_grayscale"
447458
- "adafruit_metro_esp32s2"
459+
- "artisense_rd00"
448460
- "electroniccats_bastwifi"
449461
- "espressif_kaluga_1"
450462
- "espressif_saola_1_wroom"
@@ -495,7 +507,7 @@ jobs:
495507
- name: Install CircuitPython deps
496508
run: |
497509
source $IDF_PATH/export.sh
498-
pip install requests sh click setuptools awscli
510+
pip install -r requirements-dev.txt
499511
sudo apt-get install -y gettext ninja-build
500512
env:
501513
IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf

.github/workflows/create_website_pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ jobs:
1616
env:
1717
GITHUB_CONTEXT: ${{ toJson(github) }}
1818
run: echo "$GITHUB_CONTEXT"
19+
- uses: actions/[email protected]
20+
with:
21+
submodules: true
22+
fetch-depth: 0
1923
- name: Set up Python 3.8
2024
uses: actions/setup-python@v1
2125
with:
2226
python-version: 3.8
2327
- name: Install deps
2428
run: |
25-
pip install requests sh click
29+
pip install -r requirements-dev.txt
2630
- name: Versions
2731
run: |
2832
gcc --version
2933
python3 --version
30-
- uses: actions/[email protected]
31-
with:
32-
submodules: true
33-
fetch-depth: 0
3434
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
3535
- name: CircuitPython version
3636
run: git describe --dirty --tags

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
sudo apt-add-repository -y -u ppa:pybricks/ppa
2020
sudo apt-get install -y black gettext uncrustify
21-
pip3 install polib
21+
pip3 install -r requirements-dev.txt
2222
- name: Populate selected submodules
2323
run: git submodule update --init extmod/ulab
2424
- name: Set PY

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ TAGS
8686
####################
8787
.venv
8888
.env
89+
90+
# Uncrustify formatting
91+
*.uncrustify

.gitmodules

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@
171171
[submodule "frozen/Adafruit_CircuitPython_LC709203F"]
172172
path = frozen/Adafruit_CircuitPython_LC709203F
173173
url = https://github.com/adafruit/Adafruit_CircuitPython_LC709203F
174+
[submodule "frozen/Adafruit_CircuitPython_SimpleMath"]
175+
path = frozen/Adafruit_CircuitPython_SimpleMath
176+
url = https://github.com/adafruit/Adafruit_CircuitPython_SimpleMath
174177
[submodule "ports/raspberrypi/sdk"]
175178
path = ports/raspberrypi/sdk
176-
url = https://github.com/raspberrypi/pico-sdk.git
179+
url = https://github.com/adafruit/pico-sdk.git
180+
[submodule "data/nvm.toml"]
181+
path = data/nvm.toml
182+
url = https://github.com/adafruit/nvm.toml.git
183+
branch = main
184+
[submodule "frozen/Adafruit_CircuitPython_MIDI"]
185+
path = frozen/Adafruit_CircuitPython_MIDI
186+
url = https://github.com/adafruit/Adafruit_CircuitPython_MIDI

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ repos:
2121
language: system
2222
- id: formatting
2323
name: Formatting
24-
entry: sh -c "git diff --staged --name-only | xargs python3 tools/codeformat.py"
24+
entry: python3 tools/codeformat.py
2525
types_or: [c, python]
2626
language: system

BUILDING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,23 @@ Example:
8585

8686
If your port/build includes `arm-none-eabi-gdb-py`, consider using it instead, as it can be used for better register
8787
debugging with https://github.com/bnahill/PyCortexMDebug
88+
89+
# Code Quality Checks
90+
91+
We apply code quality checks using pre-commit. Install pre-commit once per system with
92+
93+
python3 -mpip install pre-commit
94+
95+
Activate it once per git clone with
96+
97+
pre-commit --install
98+
99+
Pre-commit also requires some additional programs to be installed through your package manager:
100+
101+
* Standard Unix tools such as make, find, etc
102+
* The gettext package, any modern version
103+
* uncrustify version 0.71 (0.72 is also tested)
104+
105+
Each time you create a git commit, the pre-commit quality checks will be run. You can also run them e.g., with `pre-commit run foo.c` or `pre-commit run --all` to run on all files whether modified or not.
106+
107+
Some pre-commit quality checks require your active attention to resolve, others (such as the formatting checks of uncrustify) are made automatically and must simply be incorporated into your code changes by committing them.

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Specifically useful documentation when starting out:
5151
- `CircuitPython Essentials <https://learn.adafruit.com/circuitpython-essentials>`__
5252
- `Example Code <https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/CircuitPython_Essentials>`__
5353

54+
Code Search
55+
------------
56+
GitHub doesn't currently support code search on forks. Therefore, CircuitPython doesn't have code search through GitHub because it is a fork of MicroPython. Luckily, `SourceGraph <https://sourcegraph.com/github.com/adafruit/circuitpython>`_ has free code search for public repos like CircuitPython. So, visit `sourcegraph.com/github.com/adafruit/circuitpython <https://sourcegraph.com/github.com/adafruit/circuitpython>`_ to search the CircuitPython codebase online.
57+
5458
Contributing
5559
------------
5660

@@ -207,6 +211,7 @@ esp32s2 beta
207211
litex alpha
208212
mimxrt10xx alpha
209213
nrf stable
214+
raspberrypi beta
210215
stm ``F4`` stable | ``others`` beta
211216
unix alpha
212217
================ ============================================================

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
".env",
155155
".venv",
156156
".direnv",
157+
"data",
157158
"docs/autoapi",
158159
"docs/README.md",
159160
"drivers",
@@ -283,7 +284,7 @@
283284
# Add any extra paths that contain custom files (such as robots.txt or
284285
# .htaccess) here, relative to this directory. These files are copied
285286
# directly to the root of the documentation.
286-
html_extra_path = ["docs/robots.txt"]
287+
#html_extra_path = []
287288

288289
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
289290
# using the given strftime format.

0 commit comments

Comments
 (0)