Skip to content

Commit 5b6fb2b

Browse files
projectgusdpgeorge
authored andcommitted
top: Enable Ruff linter to check undefined-name (F821).
Also adds some global ignores for manifest files (which have implicit imports) and the multitests (which have the same). Other F821 fixes or accommodations are in the parent commits to this commit. Signed-off-by: Angus Gratton <[email protected]>
1 parent b46306c commit 5b6fb2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ ignore = [
6262
"F403",
6363
"F405",
6464
"F541",
65-
"F821",
6665
"F841",
6766
"ISC003", # micropython does not support implicit concatenation of f-strings
6867
"PIE810", # micropython does not support passing tuples to .startswith or .endswith
@@ -91,3 +90,10 @@ max-statements = 166
9190

9291
[tool.ruff.per-file-ignores]
9392
"micropython/aiorepl/aiorepl.py" = ["PGH001"]
93+
94+
# manifest.py files are evaluated with some global names pre-defined
95+
"**/manifest.py" = ["F821"]
96+
"ports/**/boards/manifest*.py" = ["F821"]
97+
98+
# ble multitests are evaluated with some names pre-defined
99+
"micropython/bluetooth/aioble/multitests/*" = ["F821"]

0 commit comments

Comments
 (0)