summaryrefslogtreecommitdiffstatshomepage
path: root/examples/rp2/pio_exec.py
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2023-08-09 18:14:33 +1000
committerDamien George <damien@micropython.org>2023-08-16 16:12:33 +1000
commit861fbf6ab5bb0c2a21a04a312453bb7adb92b8be (patch)
tree4ffea27e65f9a78c42bc04e6341892fcb91c6587 /examples/rp2/pio_exec.py
parent00855eeb36acaf626f153d8c1850ca75744b1c55 (diff)
downloadmicropython-861fbf6ab5bb0c2a21a04a312453bb7adb92b8be.tar.gz
micropython-861fbf6ab5bb0c2a21a04a312453bb7adb92b8be.zip
examples: Mark asm, pio, etc. as noqa: F821 (undefined-name).
These files all use decorators (@asm_thumb, @asm_pio) that add names to the function scope, that the linter cannot see. It's useful to clear them in the file not in pyproject.toml as example code will be copied and adapted elsewhere, and those developers may also use Ruff (we hope!) Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'examples/rp2/pio_exec.py')
-rw-r--r--examples/rp2/pio_exec.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/rp2/pio_exec.py b/examples/rp2/pio_exec.py
index ce39f2df84..3bea51f8dd 100644
--- a/examples/rp2/pio_exec.py
+++ b/examples/rp2/pio_exec.py
@@ -5,6 +5,8 @@
# - using set_init and set_base
# - using StateMachine.exec
+# ruff: noqa: F821 - @asm_pio decorator adds names to function scope
+
import time
from machine import Pin
import rp2