Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docs/code-examples to the directories checked by py-lint and py-format #2476

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/code-examples/annotation-context/example.py
Original file line number Diff line number Diff line change
@@ -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".
Expand Down
1 change: 1 addition & 0 deletions docs/code-examples/default-off-session/example.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import rerun as rr

rr.init("my_app", default_enabled=False)
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions rerun_py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading