Skip to content

Commit f5cb9eb

Browse files
projectgusdpgeorge
authored andcommitted
top: Bump Ruff version to v0.11.6.
Brings it into sync with a matching change to micropython-lib (which was much older). Includes one small automatic fix. Signed-off-by: Angus Gratton <[email protected]>
1 parent 0b72962 commit f5cb9eb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ruff.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
# ruff version should be kept in sync with .pre-commit-config.yaml
11-
- run: pipx install ruff==0.9.6
10+
# ruff version should be kept in sync with .pre-commit-config.yaml & also micropython-lib
11+
- run: pipx install ruff==0.11.6
1212
- run: ruff check --output-format=github .
1313
- run: ruff format --diff .

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ repos:
1212
verbose: true
1313
stages: [commit-msg]
1414
- repo: https://github.com/charliermarsh/ruff-pre-commit
15-
# Version should be kept in sync with .github/workflows/ruff.yml
16-
rev: v0.9.6
15+
# Version should be kept in sync with .github/workflows/ruff.yml & also micropython-lib
16+
rev: v0.11.6
1717
hooks:
1818
- id: ruff
1919
- id: ruff-format

tools/mpy_ld.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def load_object_file(env, f, felf):
11311131
elif sym.entry["st_shndx"] == "SHN_UNDEF" and sym["st_info"]["bind"] == "STB_GLOBAL":
11321132
# Undefined global symbol, needs resolving
11331133
env.unresolved_syms.append(sym)
1134-
if len(dup_errors):
1134+
if dup_errors:
11351135
raise LinkError("\n".join(dup_errors))
11361136

11371137

@@ -1214,7 +1214,7 @@ def link_objects(env, native_qstr_vals_len):
12141214
else:
12151215
undef_errors.append("{}: undefined symbol: {}".format(sym.filename, sym.name))
12161216

1217-
if len(undef_errors):
1217+
if undef_errors:
12181218
raise LinkError("\n".join(undef_errors))
12191219

12201220
# Align sections, assign their addresses, and create full_text

0 commit comments

Comments
 (0)