Skip to content

Commit c43d741

Browse files
authored
Update sqlfluff_util.py and make it compatible with sqlfluff 3.4.0
1 parent abf388f commit c43d741

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
@@ -9,6 +9,7 @@
99
from sqlfluff.cli.outputstream import FileOutput
1010
from sqlfluff.core import SQLLintError, SQLTemplaterError
1111
from sqlfluff.core.config import ConfigLoader, FluffConfig
12+
from sqlfluff.core.config.loader import load_config_up_to_path
1213
from sqlfluff.core.errors import SQLFluffUserError
1314

1415
LOGGER = logging.getLogger(__name__)
@@ -62,7 +63,7 @@ def get_config(
6263
loader = DatacovesConfigLoader().get_global()
6364

6465
# Load config at project root
65-
base_config = loader.load_config_up_to_path(
66+
base_config = load_config_up_to_path(
6667
path=str(dbt_project_root),
6768
extra_config_path=str(extra_config_path) if extra_config_path else None,
6869
ignore_local_config=ignore_local_config,

0 commit comments

Comments
 (0)