We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab31bfb commit 4949b24Copy full SHA for 4949b24
1 file changed
entangled/commands/watch.py
@@ -1,15 +1,20 @@
1
from threading import Event
2
+from pathlib import Path
3
4
from ..status import find_watch_dirs
5
+from ..logging import logger
6
7
from .sync import run_sync
8
from .main import main
9
10
import watchfiles
11
12
13
+log = logger()
14
+
15
16
def watch_filter(change: watchfiles.Change, path: str) -> bool:
- if path.startswith(".entangled"):
17
+ if Path(path).relative_to(Path.cwd()).as_posix().startswith(".entangled"):
18
return False
19
return True
20
@@ -30,6 +35,7 @@ def stop() -> bool:
30
35
dirs = "." # find_watch_dirs()
31
36
32
37
for changes in watchfiles.watch(dirs, stop_event=_stop_event, watch_filter=watch_filter):
38
+ log.debug(changes)
33
39
run_sync()
34
40
41
0 commit comments