update watchfiles version

This commit is contained in:
Aran-Fey
2025-03-13 22:45:13 +01:00
parent 05b03ad81d
commit bc5a7d61cb
2 changed files with 2 additions and 7 deletions

View File

@@ -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",

View File

@@ -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: