-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat core [CT-104 CT-105] (#4697)
Reformatting dbt-core via black, flake8, mypy, and assorted pre-commit hooks.
- Loading branch information
Showing
2,222 changed files
with
8,882 additions
and
9,620 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"version_number": "1.0.1", | ||
"package": "dbt-redshift" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ name: Jira Issue Creation | |
on: | ||
issues: | ||
types: [opened, labeled] | ||
|
||
permissions: | ||
issues: write | ||
|
||
|
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,5 +1,5 @@ | ||
# **what?** | ||
# Take the given commit, run unit tests specifically on that sha, build and | ||
# Take the given commit, run unit tests specifically on that sha, build and | ||
# package it, and then release to GitHub and PyPi with that specific build | ||
|
||
# **why?** | ||
|
@@ -144,7 +144,7 @@ jobs: | |
github-release: | ||
name: GitHub Release | ||
name: GitHub Release | ||
|
||
needs: test-build | ||
|
||
|
@@ -155,7 +155,7 @@ jobs: | |
with: | ||
name: dist | ||
path: '.' | ||
|
||
# Need to set an output variable because env variables can't be taken as input | ||
# This is needed for the next step with releasing to GitHub | ||
- name: Find release type | ||
|
@@ -179,7 +179,7 @@ jobs: | |
dbt_core-${{github.event.inputs.version_number}}-py3-none-any.whl | ||
dbt-postgres-${{github.event.inputs.version_number}}.tar.gz | ||
dbt-core-${{github.event.inputs.version_number}}.tar.gz | ||
pypi-release: | ||
name: Pypi release | ||
|
||
|
@@ -188,12 +188,12 @@ jobs: | |
needs: github-release | ||
|
||
environment: PypiProd | ||
steps: | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: 'dist' | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
|
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,5 +1,5 @@ | ||
# **what?** | ||
# Compares the schema of the dbt version of the given ref vs | ||
# Compares the schema of the dbt version of the given ref vs | ||
# the latest official schema releases found in schemas.getdbt.com. | ||
# If there are differences, the workflow will fail and upload the | ||
# diff as an artifact. The metadata team should be alerted to the change. | ||
|
@@ -37,20 +37,20 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Checkout dbt repo | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ env.DBT_REPO_DIRECTORY }} | ||
|
||
- name: Checkout schemas.getdbt.com repo | ||
uses: actions/[email protected] | ||
with: | ||
uses: actions/[email protected] | ||
with: | ||
repository: dbt-labs/schemas.getdbt.com | ||
ref: 'main' | ||
ssh-key: ${{ secrets.SCHEMA_SSH_PRIVATE_KEY }} | ||
path: ${{ env.SCHEMA_REPO_DIRECTORY }} | ||
|
||
- name: Generate current schema | ||
run: | | ||
cd ${{ env.DBT_REPO_DIRECTORY }} | ||
|
@@ -59,7 +59,7 @@ jobs: | |
pip install --upgrade pip | ||
pip install -r dev-requirements.txt -r editable-requirements.txt | ||
python scripts/collect-artifact-schema.py --path ${{ env.LATEST_SCHEMA_PATH }} | ||
# Copy generated schema files into the schemas.getdbt.com repo | ||
# Do a git diff to find any changes | ||
# Ignore any date or version changes though | ||
|
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 @@ | ||
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest | ||
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-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 |
---|---|---|
@@ -1 +1 @@ | ||
.secrets | ||
.secrets |
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 @@ | ||
GITHUB_TOKEN=GH_PERSONAL_ACCESS_TOKEN_GOES_HERE | ||
GITHUB_TOKEN=GH_PERSONAL_ACCESS_TOKEN_GOES_HERE |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"version_number": "1.0.1", | ||
"package": "dbt-postgres" | ||
} | ||
} | ||
} |
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.