Skip to content

Commit 3053326

Browse files
committed
Extend cache-avoiding logic to get_linter method
1 parent 0ce254a commit 3053326

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dbt_core_interface/sqlfluff_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
def get_linter(
1515
config: FluffConfig,
1616
stream: FileOutput,
17+
config_last_modification: Optional[str] = None,
1718
):
1819
"""Get linter."""
1920
from sqlfluff.cli.commands import get_linter_and_formatter
@@ -60,7 +61,7 @@ def get_config(
6061
stream = FileOutput(config, os.devnull)
6162
atexit.register(stream.close)
6263

63-
return config, stream
64+
return config, stream, config_last_modification
6465

6566

6667
def lint_command(

0 commit comments

Comments
 (0)