mirror of
https://github.com/rio-labs/rio.git
synced 2026-02-12 00:28:32 -06:00
update watchfiles version
This commit is contained in:
@@ -27,7 +27,7 @@ dependencies = [
|
||||
"unicall>=0.2,<0.3",
|
||||
"uniserde>=0.4,<0.5",
|
||||
"uvicorn[standard]>=0.29.0,<0.30",
|
||||
"watchfiles>=0.21,<0.22",
|
||||
"watchfiles>=0.21,<2.0",
|
||||
"yarl>=1.9,<2.0",
|
||||
"multipart>=1.2,<2.0",
|
||||
"rapidfuzz>=3.12.2,<4.0",
|
||||
|
||||
@@ -22,13 +22,8 @@ class FileWatcherWorker:
|
||||
"""
|
||||
Watch the project directory for changes and report them as events.
|
||||
"""
|
||||
# Watch all files
|
||||
filter = watchfiles.DefaultFilter()
|
||||
|
||||
# Watch the project directory
|
||||
async for changes in watchfiles.awatch(
|
||||
self.proj.project_directory, watch_filter=filter
|
||||
):
|
||||
async for changes in watchfiles.awatch(self.proj.project_directory):
|
||||
timestamp = time.monotonic_ns()
|
||||
|
||||
for change, path in changes:
|
||||
|
||||
Reference in New Issue
Block a user