diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-08-09 18:24:29 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-08-16 16:16:44 +1000 |
| commit | 40fcbe1246e95eea33a727b1c6f22f76abb34d95 (patch) | |
| tree | 30a8763bc335d543644514bcdd58169bd8cac8d2 | |
| parent | 1a5c9b9da4f16f5f7bd91c3420022d4ec0e6fa1a (diff) | |
top: Enable ruff linter check for F821 undefined-name.
Very helpful for catching typos or missing imports when writing code!
Description can be found at
https://beta.ruff.rs/docs/rules/undefined-name/
Parent commits contain various small fixes and inline ignores for this
check. The only blanket exception is manifest files, which are numerous
and evaluated with some global names pre-defined - these can be globally
ignored.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
| -rw-r--r-- | pyproject.toml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml index dfd26bd8c..a05abf887 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,6 @@ ignore = [ "F401", "F403", "F405", - "F821", "PLC1901", ] line-length = 337 @@ -46,3 +45,7 @@ max-complexity = 40 [tool.ruff.per-file-ignores] "ports/cc3200/tools/uniflash.py" = ["E711"] + +# manifest.py files are evaluated with some global names pre-defined +"**/manifest.py" = ["F821"] +"ports/**/boards/manifest*.py" = ["F821"] |
