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

invert logic of default hot reload exclusion #4807

Merged
merged 2 commits into from
Feb 12, 2025
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
4 changes: 3 additions & 1 deletion reflex/utils/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def is_excluded_by_default(path: Path) -> bool:
if path.name.startswith("__"):
# ignore things like __pycache__
return True
return path.name not in (".gitignore", "uploaded_files")
return path.name in (".gitignore", "uploaded_files")

reload_paths = (
tuple(
Expand All @@ -297,6 +297,8 @@ def is_excluded_by_default(path: Path) -> bool:
if all(not path.samefile(exclude) for exclude in exclude_dirs)
)

console.debug(f"Reload paths: {list(map(str, reload_paths))}")

return reload_paths


Expand Down