diff --git a/docs/code-examples/annotation-context/example.py b/docs/code-examples/annotation-context/example.py index 9c02c70931ec..a0bd759b5853 100644 --- a/docs/code-examples/annotation-context/example.py +++ b/docs/code-examples/annotation-context/example.py @@ -1,3 +1,5 @@ +import rerun as rr + # Annotation context with two classes, using two labeled classes, of which ones defines a color. rr.log_annotation_context( "masks", # Applies to all entities below "masks". diff --git a/docs/code-examples/default-off-session/example.py b/docs/code-examples/default-off-session/example.py index fcce7c1e1985..8ff8faef0b43 100644 --- a/docs/code-examples/default-off-session/example.py +++ b/docs/code-examples/default-off-session/example.py @@ -1,2 +1,3 @@ import rerun as rr + rr.init("my_app", default_enabled=False) diff --git a/justfile b/justfile index 244eae7781b5..1df7a0ed3942 100644 --- a/justfile +++ b/justfile @@ -18,7 +18,7 @@ lint: toml-lint py-lint rs-lint ### Python -py_folders := "examples rerun_py scripts" +py_folders := "examples rerun_py scripts docs/code-examples" # Set up a Pythonvirtual environment for development py-dev-env: diff --git a/rerun_py/pyproject.toml b/rerun_py/pyproject.toml index 0ccfc24a582c..94bf93155456 100644 --- a/rerun_py/pyproject.toml +++ b/rerun_py/pyproject.toml @@ -93,6 +93,7 @@ select = [ [tool.ruff.per-file-ignores] "docs/code-examples/*" = ["I002"] +"docs/code-examples/extension-components/example.py" = ["F821"] [tool.ruff.flake8-tidy-imports] ban-relative-imports = "all"