Skip to content
Merged
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
6 changes: 3 additions & 3 deletions shiny/_docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,17 @@ def _(func: F) -> F:

other_files: list[str] = []
for abs_f in Path(example_dir).glob("**/*"):
path_parts = Path(abs_f).parts
rel_f = abs_f.relative_to(example_dir)
f = os.path.basename(abs_f)
path_parts = Path(rel_f).parts
f = os.path.basename(rel_f)
Comment on lines +158 to +159
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! This is the same fix I thought of before looking at the changes :)

is_support_file = (
os.path.isfile(abs_f)
and f != app_file_name
and f != "app.py"
and f != ".DS_Store"
and "venv" not in path_parts
and ".venv" not in path_parts
and not f.startswith("app-")
and not (f.startswith("app-") and f.endswith(".py"))
and not str(rel_f).startswith("__")
)
if is_support_file:
Expand Down