mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
style: fix linting issues in watch.py
This commit is contained in:
parent
981bd950da
commit
75d24974ec
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue