forked from sqlfluff/sqlfluff
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to performance and other issues, revert the osmosis implementatio…
…n of the templater for now (sqlfluff#4273) * Revert osmosis dbt templater for now * Revert the osmosis implementation of the templater for now * Fix broken test * Fix coverage gaps * More coverage fixes * PR review * PR review Co-authored-by: Barry Hart <[email protected]> Co-authored-by: Alan Cruickshank <[email protected]>
- Loading branch information
1 parent
92c2391
commit fcddf0f
Showing
11 changed files
with
512 additions
and
1,919 deletions.
There are no files selected for viewing
14 changes: 2 additions & 12 deletions
14
plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
"""Defines the hook endpoints for the dbt templater plugin.""" | ||
|
||
from sqlfluff.core.plugin import hookimpl | ||
|
||
from sqlfluff_templater_dbt.osmosis import DbtProjectContainer | ||
from sqlfluff_templater_dbt.templater import DbtTemplater | ||
|
||
|
||
dbt_project_container = DbtProjectContainer() | ||
from sqlfluff.core.plugin import hookimpl | ||
|
||
|
||
@hookimpl | ||
def get_templaters(): | ||
"""Get templaters.""" | ||
|
||
def create_templater(**kwargs): | ||
return DbtTemplater(dbt_project_container=dbt_project_container, **kwargs) | ||
|
||
create_templater.name = DbtTemplater.name | ||
return [create_templater] | ||
return [DbtTemplater] |
201 changes: 0 additions & 201 deletions
201
plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/osmosis/LICENSE
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/osmosis/README.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.