-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge versioned branches into main (#168)
* Revert "Upgraded to dbt-core 1.4. (#146)" This reverts commit 3db05eb. * Fix version bumping * Migration bump2version (unmaintained) to bump-my-version * Import `bumpversion.cfg` from `dbt-snowflake` * Convert `bumpversion.cfg` to `bumpversion.toml` * Fix a few incorrect version labels * Remove macos and windows as integration targets * Fix requirements conflict between dbt 1.2 and tox * Bump version to 1.3 * Upgraded to dbt-core 1.4. (#146) * Upgraded to dbt-core 1.4. * Updated CHANGELOG. * Fixed policy fields definitions for mariadb and mysql5. * Replaced deprecated dbt.exceptions.raise_compiler_error() with dbt.exceptions.CompilationError. * Now using dbt.exceptions.DbtDatabaseError insead of dbt.exceptions.DatabaseException. * Update version * Update changelog --------- Co-authored-by: Doug Beatty <[email protected]> * Bump version to 1.5 * Update dbt-core to 1.5 and implement support for model contracts (#163) Update dbt-core to 1.5.9 and implement support for constraints * Update changelog * Fix unit test error - The error was: `AttributeError: 'Namespace' object has no attribute 'MACRO_DEBUGGING'` * Allow Unix socket connection rather than just TCP (#165) * Support Black & MyPy pre-commit hooks (#167) * Add black and mypy as pre-commit hooks * Run black formatter on all files * Add MyPy configuration & make tweaks and ignore errors to make MyPy pass * Add .git-blame-ignore-revs to ignore `black` changes in git blame * Update changelog * Run black formatter on all files * Add black commit to .git-blame-ignore-revs * Run black formatter on all files * Add black commit to .git-blame-ignore-revs * Fix MyPy & black errors * Make the `database` config field nullable again * Fix mypy * Bump version to 1.6 * Bump version to 1.7 * Fix import error --------- Co-authored-by: Luke <[email protected]> Co-authored-by: Doug Beatty <[email protected]>
- Loading branch information
1 parent
22de9fe
commit cfd275c
Showing
37 changed files
with
1,198 additions
and
267 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[tool.bumpversion] | ||
current_version = "1.7.0a1" | ||
parse = ''' | ||
(?P<major>[\d]+) # major version number | ||
\.(?P<minor>[\d]+) # minor version number | ||
\.(?P<patch>[\d]+) # patch version number | ||
(?P<prerelease> # optional pre-release - ex: a1, b2, rc25 | ||
(?P<prekind>a|b|rc) # pre-release type | ||
(?P<num>[\d]+) # pre-release version number | ||
)? | ||
( # optional nightly release indicator | ||
\.(?P<nightly>dev[0-9]+) # ex: .dev02142023 | ||
)? # expected matches: `1.15.0`, `1.5.0a11`, `1.5.0a1.dev123`, `1.5.0.dev123457`, expected failures: `1`, `1.5`, `1.5.2-a1`, `text1.5.0` | ||
''' | ||
serialize = [ | ||
"{major}.{minor}.{patch}{prekind}{num}.{nightly}", | ||
"{major}.{minor}.{patch}.{nightly}", | ||
"{major}.{minor}.{patch}{prekind}{num}", | ||
"{major}.{minor}.{patch}", | ||
] | ||
commit = false | ||
tag = false | ||
|
||
[tool.bumpversion.parts.prekind] | ||
first_value = "a" | ||
optional_value = "final" | ||
values = [ | ||
"a", | ||
"b", | ||
"rc", | ||
"final", | ||
] | ||
|
||
[tool.bumpversion.parts.num] | ||
first_value = "1" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "setup.py" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "dbt/adapters/mysql/__version__.py" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "dbt/adapters/mysql5/__version__.py" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "dbt/adapters/mariadb/__version__.py" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "dev-requirements.txt" | ||
parse = ''' | ||
(?P<major>[\d]+) # major version number | ||
\.(?P<minor>[\d]+) # minor version number | ||
.latest | ||
''' | ||
serialize = ["{major}.{minor}.latest"] |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ran `black` on all files | ||
99a125c82b846fd25aed432ed67a9ad982bbe0ad | ||
# Ran `black` on all files | ||
f0507baaa4279575831ad06452757666d25bd90b | ||
# Ran `black` on all files | ||
870bbbf3c55081c436da7acb67a28e05c7484a44 |
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
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
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,22 +1,63 @@ | ||
# For more on configuring pre-commit hooks (see https://pre-commit.com/) | ||
|
||
# Force all unspecified python hooks to run python 3.8 | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-yaml | ||
args: [--unsafe] | ||
- id: check-json | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-case-conflict | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
additional_dependencies: ['click~=8.1'] | ||
args: | ||
- "--line-length=99" | ||
- "--target-version=py38" | ||
- id: black | ||
alias: black-check | ||
stages: [manual] | ||
additional_dependencies: ['click~=8.1'] | ||
args: | ||
- "--line-length=99" | ||
- "--target-version=py38" | ||
- "--check" | ||
- "--diff" | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 4.0.1 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
- id: flake8 | ||
alias: flake8-check | ||
stages: [manual] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.1.1 | ||
hooks: | ||
- id: mypy | ||
# N.B.: Mypy is... a bit fragile. | ||
# | ||
# By using `language: system` we run this hook in the local | ||
# environment instead of a pre-commit isolated one. This is needed | ||
# to ensure mypy correctly parses the project. | ||
|
||
# It may cause trouble in that it adds environmental variables out | ||
# 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, --explicit-package-bases] | ||
files: ^dbt/adapters/.* | ||
language: system | ||
- id: mypy | ||
alias: mypy-check | ||
stages: [manual] | ||
args: [--show-error-codes, --pretty, --ignore-missing-imports, --explicit-package-bases] | ||
files: ^dbt/adapters | ||
language: system |
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
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
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
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
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 +1 @@ | ||
version = "1.4.0a1" | ||
version = "1.7.0a1" |
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
Oops, something went wrong.