Skip to content

Commit 05812e0

Browse files
authored
Merge branch 'main' into watchdog-rp
2 parents 8964228 + 1c0155c commit 05812e0

File tree

2,387 files changed

+82823
-31679
lines changed

Some content is hidden

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

2,387 files changed

+82823
-31679
lines changed

.codespell/exclude-file.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#define MICROPY_HW_BOARD_NAME "BLOK"
2+
USB_PRODUCT = "BLOK"
3+
uint32_t THI = (*(uint32_t *)FUSES_HOT_TEMP_VAL_INT_ADDR & FUSES_HOT_TEMP_VAL_INT_Msk) >> FUSES_HOT_TEMP_VAL_INT_Pos;
4+
float TH = THI + convert_dec_to_frac(THD);
5+
print(binascii.b2a_base64(b"fo"))
6+
# again, neither will "there" or "wither", since they have "the"
7+
i1Qb$TE"rl

.codespell/ignore-words.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ans
2+
ure
3+
clen
4+
ser
5+
endianess
6+
pris
7+
synopsys
8+
reenable
9+
dout
10+
inout
11+
wel
12+
iput
13+
hsi
14+
astroid
15+
busses
16+
cyphertext
17+
dum
18+
deque
19+
deques
20+
extint
21+
shs
22+
pass-thru
23+
numer
24+
arithmetics
25+
ftbfs
26+
straightaway

.codespellrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to 'ignore-words.txt' (one word per line).
4+
# Or copy & paste the whole problematic line to 'exclude-file.txt'
5+
ignore-words = .codespell/ignore-words.txt
6+
exclude-file = .codespell/exclude-file.txt
7+
check-filenames =
8+
check-hidden =
9+
count =
10+
skip = .cproject,.git,./lib,./locale,ACKNOWLEDGEMENTS

.devcontainer/cortex-m/on-create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ rm -fr /workspaces/dosfstools-4.2 /workspaces/dosfstools-4.2.tar.gz
3434
# prepare source-code tree
3535
cd /workspaces/circuitpython/
3636
echo -e "[on-create.sh] fetching submodules"
37-
make fetch-submodules
37+
make fetch-all-submodules
3838
echo -e "[on-create.sh] fetching tags"
3939
git fetch --tags --recurse-submodules=no --shallow-since="2021-07-01" https://github.com/adafruit/circuitpython HEAD
4040

.git-blame-ignore-revs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#all: Reformat remaining C code that doesn't have a space after a comma.
2+
5b700b0af90591d6b1a2c087bb8de6b7f1bfdd2d
3+
4+
# ports: Reformat more C and Python source code.
5+
5c32111fa0e31e451b0f1666bdf926be2fdfd82c
6+
7+
# all: Update Python formatting to latest Black version 22.1.0.
8+
ab2923dfa1174dc177f0a90cb00a7e4ff87958d2
9+
10+
# all: Update Python formatting to latest Black version 21.12b0.
11+
3770fab33449a5dadf8eb06edfae0767e75320a6
12+
113
# tools/gen-cpydiff.py: Fix formatting of doc strings for new Black.
214
0f78c36c5aa458a954eed39a46942209107a553e
315

.github/actions/deps/external/action.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,14 @@ runs:
3030
# espressif
3131
- name: Get espressif toolchain
3232
if: inputs.port == 'espressif'
33-
run: sudo apt-get install -y ninja-build
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y ninja-build
3436
shell: bash
3537
- name: Install IDF tools
3638
if: inputs.port == 'espressif'
3739
run: |
38-
echo "Installing ESP-IDF tools"
39-
$IDF_PATH/tools/idf_tools.py --non-interactive install required
40-
$IDF_PATH/tools/idf_tools.py --non-interactive install cmake
41-
echo "Installing Python environment and packages"
42-
$IDF_PATH/tools/idf_tools.py --non-interactive install-python-env
40+
$IDF_PATH/install.sh
4341
rm -rf $IDF_TOOLS_PATH/dist
4442
shell: bash
4543
- name: Set environment

.github/actions/deps/ports/broadcom/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ runs:
77
run: |
88
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
99
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
10+
sudo apt-get update
1011
sudo apt-get install -y mtools
1112
shell: bash
1213
- name: Install mkfs.fat

.github/workflows/build-mpy-cross.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ jobs:
4343

4444
- name: Install toolchain (aarch64)
4545
if: matrix.mpy-cross == 'static-aarch64'
46-
run: sudo apt-get install -y gcc-aarch64-linux-gnu
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y gcc-aarch64-linux-gnu
4749
- name: Install toolchain (mingw)
4850
if: matrix.mpy-cross == 'static-mingw'
49-
run: sudo apt-get install -y mingw-w64
51+
run: |
52+
sudo apt-get update
53+
sudo apt-get install -y mingw-w64
5054
5155
- name: Build mpy-cross.${{ matrix.mpy-cross }}
5256
run: make -C mpy-cross -j2 -f Makefile.${{ matrix.mpy-cross }}

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ jobs:
6767
run: echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
6868
- name: Set base sha (pull)
6969
if: github.event_name == 'pull_request'
70-
run: |
71-
git fetch --no-tags --no-recurse-submodules --depth=$((DEPTH + 1)) origin $HEAD_SHA
72-
echo "BASE_SHA=$(git rev-list $HEAD_SHA --skip=$DEPTH --max-count=1)" >> $GITHUB_ENV
70+
run: git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
7371
env:
74-
DEPTH: ${{ steps.get-last-commit-with-checks.outputs.commit_depth || github.event.pull_request.commits }}
72+
SHA: ${{ steps.get-last-commit-with-checks.outputs.commit_sha || github.event.pull_request.base.sha }}
7573
- name: Set head sha (push)
7674
if: github.event_name == 'push'
7775
run: echo "HEAD_SHA=${{ github.event.after }}" >> $GITHUB_ENV
@@ -80,16 +78,11 @@ jobs:
8078
run: git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
8179
env:
8280
SHA: ${{ github.event.before }}
83-
- name: Get changes
84-
id: get-changes
85-
if: env.BASE_SHA && env.HEAD_SHA
86-
run: echo $(git diff $BASE_SHA...$HEAD_SHA --name-only) | echo "changed_files=[\"$(sed "s/ /\", \"/g")\"]" >> $GITHUB_OUTPUT
8781
- name: Set matrix
8882
id: set-matrix
8983
run: python3 -u ci_set_matrix.py
9084
working-directory: tools
9185
env:
92-
CHANGED_FILES: ${{ steps.get-changes.outputs.changed_files }}
9386
LAST_FAILED_JOBS: ${{ steps.get-last-commit-with-checks.outputs.check_runs }}
9487

9588
tests:
@@ -181,6 +174,7 @@ jobs:
181174
uses: ./.github/actions/deps/submodules
182175
- name: Install dependencies
183176
run: |
177+
sudo apt-get update
184178
sudo apt-get install -y latexmk librsvg2-bin texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
185179
pip install -r requirements-doc.txt
186180
- name: Build and Validate Stubs
@@ -215,7 +209,7 @@ jobs:
215209
TWINE_USERNAME: ${{ secrets.pypi_username }}
216210
TWINE_PASSWORD: ${{ secrets.pypi_password }}
217211
run: |
218-
# setup.py sdist was run by 'make stubs'
212+
# python -m build was run by 'make stubs'
219213
[ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi"
220214
[ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*
221215

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Set up external
3131
uses: ./.github/actions/deps/external
3232
- name: Install dependencies
33-
run: sudo apt-get install -y gettext uncrustify
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y gettext uncrustify
3436
- name: Run pre-commit
3537
uses: pre-commit/[email protected]
3638
- name: Make patch

0 commit comments

Comments
 (0)