Skip to content

Commit

Permalink
Add dbt-core pre-commit check (#981)
Browse files Browse the repository at this point in the history
* add dbt-core pre-commit check
* fix unit tests
  • Loading branch information
mikealfare authored Apr 19, 2024
1 parent f2f0868 commit 3dfff6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- repo: https://github.com/dbt-labs/pre-commit-hooks
rev: v0.1.0a1
hooks:
- id: dbt-core-in-adapters-check
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_snowflake_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dbt.adapters.snowflake.column import SnowflakeColumn
from dbt.adapters.snowflake.connections import SnowflakeCredentials
from dbt.contracts.files import FileHash
from dbt.context.manifest import generate_query_header_context
from dbt.context.query_header import generate_query_header_context
from dbt.context.providers import generate_runtime_macro_context
from dbt.contracts.graph.manifest import ManifestStateCheck
from dbt_common.clients import agate_helper
Expand Down

0 comments on commit 3dfff6b

Please sign in to comment.