From da680c7815b892db4f39df306dc8cf40e21d2347 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 17:26:34 -0400 Subject: [PATCH 1/9] add pre-commit autoupdate workflow --- .github/workflows/precommit-autoupdate.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/precommit-autoupdate.yml diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml new file mode 100644 index 00000000..19c8ea97 --- /dev/null +++ b/.github/workflows/precommit-autoupdate.yml @@ -0,0 +1,18 @@ +name: "Run pre-commit autoupdate" + +on: + schedule: + - cron: "30 1 * * *" + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.sha }} + cancel-in-progress: true + +jobs: + precommit-autoupdate: + name: "Run pre-commit autoupdate" + uses: dbt-labs/actions/.github/workflows/pre-commit-autoupdate.yml@pre-commit-auto-update From 1749c2c9ea06d94280f35e3481186579e697c012 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 17:40:15 -0400 Subject: [PATCH 2/9] register the workflow using pull_request --- .github/workflows/precommit-autoupdate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index 19c8ea97..eeb811bb 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -1,6 +1,7 @@ name: "Run pre-commit autoupdate" on: + pull_request: schedule: - cron: "30 1 * * *" workflow_dispatch: From cbf2e2d11146403559f5bd0d5151710c5bc8f2b6 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 17:41:13 -0400 Subject: [PATCH 3/9] remove - register the workflow using pull_request --- .github/workflows/precommit-autoupdate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index eeb811bb..19c8ea97 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -1,7 +1,6 @@ name: "Run pre-commit autoupdate" on: - pull_request: schedule: - cron: "30 1 * * *" workflow_dispatch: From acf451ddcc4c2703a38b10a0babe4f7e67747577 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 17:49:16 -0400 Subject: [PATCH 4/9] register the workflow using pull_request --- .github/workflows/precommit-autoupdate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index 19c8ea97..eeb811bb 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -1,6 +1,7 @@ name: "Run pre-commit autoupdate" on: + pull_request: schedule: - cron: "30 1 * * *" workflow_dispatch: From 9e478fb66e22ff3799e2a43ff91db86a693e621c Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 17:49:53 -0400 Subject: [PATCH 5/9] remove - register the workflow using pull_request --- .github/workflows/precommit-autoupdate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index eeb811bb..19c8ea97 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -1,7 +1,6 @@ name: "Run pre-commit autoupdate" on: - pull_request: schedule: - cron: "30 1 * * *" workflow_dispatch: From 70bdec26a3d7e1084e024073816d522c05169874 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 18:23:15 -0400 Subject: [PATCH 6/9] update schedule to weekly --- .github/workflows/precommit-autoupdate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index 19c8ea97..b4adcaab 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -2,7 +2,7 @@ name: "Run pre-commit autoupdate" on: schedule: - - cron: "30 1 * * *" + - cron: "30 1 * * SAT" workflow_dispatch: permissions: From 9788a4fe69b6f9633df5ce6917442ebc7471f3dd Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 19:26:00 -0400 Subject: [PATCH 7/9] fix token --- .github/workflows/precommit-autoupdate.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index b4adcaab..64db594f 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -16,3 +16,5 @@ jobs: precommit-autoupdate: name: "Run pre-commit autoupdate" uses: dbt-labs/actions/.github/workflows/pre-commit-autoupdate.yml@pre-commit-auto-update + secrets: + GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} From 2139902aec6d6128c831fedaf30c02c2e9b5fb17 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 6 Sep 2024 19:27:04 -0400 Subject: [PATCH 8/9] fix token --- .github/workflows/precommit-autoupdate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml index 64db594f..1edf1223 100644 --- a/.github/workflows/precommit-autoupdate.yml +++ b/.github/workflows/precommit-autoupdate.yml @@ -17,4 +17,4 @@ jobs: name: "Run pre-commit autoupdate" uses: dbt-labs/actions/.github/workflows/pre-commit-autoupdate.yml@pre-commit-auto-update secrets: - GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} From 3869fcf7d974d877faa39b2be05dfd68ed2ac0c0 Mon Sep 17 00:00:00 2001 From: Github Build Bot Date: Fri, 6 Sep 2024 23:36:49 +0000 Subject: [PATCH 9/9] [automated] update pre-commit hooks --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0f2a03f7..aa942447 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: - id: dbt-core-in-adapters-check - repo: https://github.com/psf/black - rev: 24.4.0 + rev: 24.8.0 hooks: - id: black args: @@ -30,7 +30,7 @@ repos: - --force-exclude=dbt/adapters/events/adapter_types_pb2.py - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 exclude: dbt/adapters/events/adapter_types_pb2.py|tests/functional/ @@ -41,7 +41,7 @@ repos: - --per-file-ignores=*/__init__.py:F401,*/conftest.py:F401 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v1.11.2 hooks: - id: mypy exclude: dbt/adapters/events/adapter_types_pb2.py|dbt-tests-adapter/dbt/__init__.py