-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ct 177/add precommit hooks #107
Conversation
Adding precheck manager, make tasks, workflows, and dev requirements to facilitate these workflows.
# of our control to the mix. Unfortunately, there's nothing we can | ||
# do about per pre-commit's author. | ||
# See https://github.com/pre-commit/pre-commit/issues/730 for details. | ||
args: [--show-error-codes, --ignore-missing-imports] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the --ignore-missing-imports
flag here to reduce in-code clutter. My argument is that all these errors tell you is that the upstream project lacks static type information, which isn't that powerful of knowledge.
@@ -18,10 +18,10 @@ | |||
InternalException, RuntimeException, FailedToConnectException, | |||
DatabaseException, warn_or_error | |||
) | |||
from dbt.adapters.base import Credentials | |||
from dbt.adapters.base import Credentials # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attr-defined errors are masked by this # type: ignore
declaration
* use checks over code and rewrite repo to conform to style conventions * Add query_id to adapter payload and tests. (#109) * Mix in released snowflake 1.1.0b1 * Resolve a Black library issue
rev: 21.12b0 | ||
hooks: | ||
- id: black | ||
additional_dependencies: ['click==8.0.4'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partially addresses #95
Description
Adds precommit hooks and tooling (e.g. a handy makefile) for this repo. A few additions to files that don't really address core logic.
Wait, why review this if it isn't passing?
This PR won't pass until we merge in all the little whitespace formatting code changes. I have those over in PR 108. The proper merge order:
1. approval of this PR (107) 🔴2. approval of PR 108 🟢3. merge 108 to make this PR 🟢4.
Background thinking
Why these changes?
dbt
if we wanted static analysis in this repository)Checklist
CHANGELOG.md
and added information about my change to the "dbt-snowflake next" section.