diff --git a/entrypoint.sh b/entrypoint.sh index a6c8251..a1e712e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -75,7 +75,7 @@ if [[ "${SQLFLUFF_COMMAND:?}" == "lint" ]]; then $(if [[ "x${SQLFLUFF_TEMPLATER}" != "x" ]]; then echo "--templater ${SQLFLUFF_TEMPLATER}"; fi) \ $(if [[ "x${SQLFLUFF_DISABLE_NOQA}" != "x" ]]; then echo "--disable-noqa ${SQLFLUFF_DISABLE_NOQA}"; fi) \ $(if [[ "x${SQLFLUFF_DIALECT}" != "x" ]]; then echo "--dialect ${SQLFLUFF_DIALECT}"; fi) \ - $changed_files >> "$lint_results" + $changed_files | tail -n +2 >> "$lint_results" sqlfluff_exit_code=$? cat "$lint_results" diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 87c1d0f..93b7b59 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -3,6 +3,7 @@ pre-commit>=2.0,<3.0 # dbt dbt-core==${DBT_VERSION} +dbt-bigquery==${DBT_VERSION} # sqlfluff sqlfluff==${SQLFLUFF_VERSION}