style: fix linting issues in watch.py

This commit is contained in:
Paul Gauthier (aider) 2024-12-01 18:25:23 -08:00
parent 981bd950da
commit 75d24974ec

View file

@ -10,7 +10,8 @@ from watchfiles import watch
from aider.dump import dump # noqa from aider.dump import dump # noqa
#ai
# ai
def is_source_file(path: Path) -> bool: def is_source_file(path: Path) -> bool:
""" """
Check if a file is a source file that uses # or // style comments. Check if a file is a source file that uses # or // style comments.
@ -48,7 +49,7 @@ def is_source_file(path: Path) -> bool:
".hs", # Haskell ".hs", # Haskell
".lua", ".lua",
".elm", ".elm",
".vhd", # VHDL ".vhd", # VHDL
".vhdl", ".vhdl",
} }
return path.suffix.lower() in COMMENT_STYLE_EXTENSIONS return path.suffix.lower() in COMMENT_STYLE_EXTENSIONS