myuan 2 år sedan
förälder
incheckning
89020f77bc
1 ändrade filer med 2 tillägg och 7 borttagningar
  1. 2 7
      run_sql_parser_test.py

+ 2 - 7
run_sql_parser_test.py

@@ -1,12 +1,7 @@
 from pathlib import Path
-import sys
-import time
-from watchdog.observers import Observer
-from watchdog.events import FileSystemEventHandler
-from watchdog.events import LoggingEventHandler
 import asyncio.subprocess as subprocess
 import asyncio
-from watchfiles import Change, awatch, watch
+from watchfiles import awatch
 from termcolor import colored
 from datetime import datetime
 import orjson
@@ -100,7 +95,7 @@ async def watch_parser():
 
 
 async def watch_checker():
-    async for changes in awatch("./src/checker.cpp", "./src/checker.h"):
+    async for changes in awatch("./src/checker.cpp", "./src/checker.h", "./src/utils.h", "./src/utils.cpp"):
         if await rebuild():
             await on_checker_modified()