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

fix: Make regex strings raw #811

Merged
merged 1 commit into from
Sep 10, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
# these are the patterns to watch for changes in this directory
# if in editable mode, the builder will rerun when these files change
REBUILD_REGEXES = [
".*\.py$",
".*\.js$",
".*\.ts$",
".*\.tsx$",
".*\.scss$",
r".*\.py$",
r".*\.js$",
r".*\.ts$",
r".*\.tsx$",
r".*\.scss$",
]

# ignore these patterns in particular
# prevents infinite loops when the builder is rerun
IGNORE_REGEXES = [
".*/dist/.*",
".*/build/.*",
".*/node_modules/.*",
".*/_js/.*",
r".*/dist/.*",
r".*/build/.*",
r".*/node_modules/.*",
r".*/_js/.*",
# ignore hidden files and directories
".*/\..*/.*",
r".*/\..*/.*",
]

# the path where the python files are located relative to this script
Expand Down
24 changes: 12 additions & 12 deletions tools/plugin_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@
# these are the patterns to watch for changes in the plugins directory
# if in editable mode, the builder will rerun when these files change
REBUILD_REGEXES = [
".*\.py$",
".*\.js$",
".*\.md$",
".*\.svg$",
".*\.ts$",
".*\.tsx$",
".*\.scss$",
r".*\.py$",
r".*\.js$",
r".*\.md$",
r".*\.svg$",
r".*\.ts$",
r".*\.tsx$",
r".*\.scss$",
]

# ignore these patterns in particular
# prevents infinite loops when the builder is rerun
IGNORE_REGEXES = [
".*/dist/.*",
".*/build/.*",
".*/node_modules/.*",
".*/_js/.*",
r".*/dist/.*",
r".*/build/.*",
r".*/node_modules/.*",
r".*/_js/.*",
# ignore hidden files and directories
".*/\..*/.*",
r".*/\..*/.*",
]


Expand Down
Loading