From 6225238f60e8c820f6669226deb9e8f052be8c20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:34:57 +0800 Subject: [PATCH 1/7] ci: pre-commit autoupdate (#161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commit-check/commit-check: v0.7.4 → v0.8.0](https://github.com/commit-check/commit-check/compare/v0.7.4...v0.8.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 467425b..355cd76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: hooks: - id: codespell - repo: https://github.com/commit-check/commit-check - rev: v0.7.4 + rev: v0.8.0 hooks: - id: check-message # - id: check-branch # uncomment if you need. From 581a558b0aa16fd0736157ad5043644c408933cd Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Tue, 11 Jun 2024 12:19:33 +0800 Subject: [PATCH 2/7] chore: remvoe slsa-github-generator (#160) removed slsa-framework/slsa-github-generator --- .github/workflows/publish-package.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index f104e16..77c5179 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -13,8 +13,6 @@ permissions: jobs: publish: runs-on: ubuntu-latest - outputs: - hashes: ${{ steps.hash.outputs.hashes }} steps: - uses: actions/checkout@v4 # use fetch --all for setuptools_scm to work @@ -39,13 +37,6 @@ jobs: with: subject-path: "dist/commit_check*" - - name: Generate subject - id: hash - run: | - cd dist - HASHES=$(sha256sum commit_check* | base64 -w0) - echo "hashes=$HASHES" >> "$GITHUB_OUTPUT" - - name: Publish package to TestPyPI if: github.event_name == 'workflow_dispatch' && github.repository == 'commit-check/commit-check' env: @@ -60,16 +51,3 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: twine upload dist/commit_check* - - provenance: - needs: ['publish'] - permissions: - actions: read # To read the workflow path. - id-token: write # To sign the provenance. - contents: write # To add assets to a release. - # Can't pin with hash due to how this workflow works. - uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0 - with: - base64-subjects: ${{ needs.publish.outputs.hashes }} - upload-assets: true # Optional: Upload to a new release - continue-on-error: true From bc4f434d75f3afba25e42bafc3aa8c5fbd701fc1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:16:53 +0800 Subject: [PATCH 3/7] ci: pre-commit autoupdate (#162) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 355cd76..f56ffd2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: name-tests-test - id: requirements-txt-fixer - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.1.0 hooks: - id: flake8 args: [--max-line-length=100, --ignore=E501] From 73e0b1955f43b85409217471f0313a92fbb4761c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 22:58:40 +0800 Subject: [PATCH 4/7] ci: pre-commit autoupdate (#163) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f56ffd2..50ed46a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: args: [--max-line-length=100, --ignore=E501] exclude: ^commit_check/__init__.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy additional_dependencies: [types-all] From 368b34ee849d47c0202532c2b1bedfe19f98bc80 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:46:11 +0300 Subject: [PATCH 5/7] ci: pre-commit autoupdate (#164) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.1...v1.11.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 50ed46a..2141aae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: args: [--max-line-length=100, --ignore=E501] exclude: ^commit_check/__init__.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.0 hooks: - id: mypy additional_dependencies: [types-all] From 0d18eaf43da5b188eb4b61c6d4e9574c743b9b92 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Aug 2024 06:11:24 +0300 Subject: [PATCH 6/7] ci: pre-commit autoupdate (#165) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2141aae..17bb1aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,13 +16,13 @@ repos: - id: name-tests-test - id: requirements-txt-fixer - repo: https://github.com/PyCQA/flake8 - rev: 7.1.0 + rev: 7.1.1 hooks: - id: flake8 args: [--max-line-length=100, --ignore=E501] exclude: ^commit_check/__init__.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.0 + rev: v1.11.1 hooks: - id: mypy additional_dependencies: [types-all] From 100eda88fa078c9966bbe2f91abda9b173afbfa3 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Tue, 6 Aug 2024 14:25:53 +0300 Subject: [PATCH 7/7] fix: change mypy additional dependencies (#166) --- .github/workflows/main.yml | 1 + .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8199536..898121e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ on: - "**.py" - pyproject.toml - ".github/workflows/main.yml" + - ".pre-commit-config.yaml" - "!docs/**" workflow_dispatch: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17bb1aa..316589e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: rev: v1.11.1 hooks: - id: mypy - additional_dependencies: [types-all] + additional_dependencies: [types-PyYAML] exclude: ^testing/resources/ - repo: https://github.com/codespell-project/codespell rev: v2.3.0