From cdc6fb268e6c9edb8a6a2374512b7e7c8e0df4b4 Mon Sep 17 00:00:00 2001 From: Derek Wan Date: Wed, 7 Jan 2026 13:50:32 +0900 Subject: [PATCH 1/2] 2026-01-07 13:50:32 (Wed) > DW-Mac > derekwan From b0f8f7559f63c31e8ef03bf02a352bb54f3b9ba8 Mon Sep 17 00:00:00 2001 From: Derek Wan Date: Wed, 7 Jan 2026 13:52:30 +0900 Subject: [PATCH 2/2] 2026-01-07 13:52:30 (Wed) > DW-Mac > derekwan --- .github/workflows/pull-request.yaml | 19 ++++++++----------- .github/workflows/push.yaml | 7 +++---- .pre-commit-config.yaml | 19 ++++++++----------- uv.lock | 10 +++++----- 4 files changed, 24 insertions(+), 31 deletions(-) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index efae1e8..3ba2da9 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -9,13 +9,13 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - name: Run 'pre-commit' - uses: dycw/action-pre-commit@latest + - if: github.event_name == 'pull_request' + name: Run 'pre-commit' hooks + uses: dycw/action-run-hooks@latest with: - token-checkout: ${{github.token}} - token-uv: ${{github.token}} + token: ${{github.token}} repos: |- - dycw/conformalize + dycw/actions pre-commit/pre-commit-hooks sleep: 1 pyright: @@ -24,8 +24,7 @@ jobs: - name: Run 'pyright' uses: dycw/action-pyright@latest with: - token-checkout: ${{github.token}} - token-uv: ${{github.token}} + token: ${{github.token}} python-version: "3.14" resolution: highest prerelease: disallow @@ -39,8 +38,7 @@ jobs: - name: Run 'pytest' uses: dycw/action-pytest@latest with: - token-checkout: ${{github.token}} - token-uv: ${{github.token}} + token: ${{github.token}} python-version: ${{matrix.python-version}} resolution: ${{matrix.resolution}} prerelease: disallow @@ -61,5 +59,4 @@ jobs: - name: Run 'ruff' uses: dycw/action-ruff@latest with: - token-checkout: ${{github.token}} - token-ruff: ${{github.token}} + token: ${{github.token}} diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 9ae844d..efe1ae9 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -7,10 +7,9 @@ jobs: tag: runs-on: ubuntu-latest steps: - - name: Tag latest commit - uses: dycw/action-tag@latest + - name: Tag the latest commit + uses: dycw/action-tag-commit@latest with: - token-checkout: ${{github.token}} - token-uv: ${{github.token}} + token: ${{github.token}} user-name: github-actions-bot user-email: noreply@github.com diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7c74fe..2bb9c8a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,9 @@ repos: - - repo: https://github.com/dycw/conformalize - rev: 0.13.6 + - repo: https://github.com/dycw/actions + rev: 0.6.3 hooks: - - args: + - id: conformalize-repo + args: - --description=Template for Python packages - --envrc - --envrc--uv @@ -14,8 +15,8 @@ repos: - --github--push--tag - --gitignore - --package-name=dycw-template-python - - --pre-commit--dycw - --pre-commit--prettier + - --pre-commit--python - --pre-commit--ruff - --pre-commit--taplo - --pre-commit--uv @@ -25,7 +26,8 @@ repos: - --readme - --repo-name=template-python - --ruff - id: conformalize + - id: format-requirements + - id: replace-sequence-strs - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: @@ -43,11 +45,6 @@ repos: args: - --autofix - id: trailing-whitespace - - repo: https://github.com/dycw/actions - rev: 0.3.40 - hooks: - - id: format-requirements - - id: replace-sequence-strs - repo: local hooks: - id: prettier @@ -76,7 +73,7 @@ repos: - --option - reorder_keys=true - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.9.21 + rev: 0.9.22 hooks: - id: uv-lock args: diff --git a/uv.lock b/uv.lock index eee5041..b3d8a54 100644 --- a/uv.lock +++ b/uv.lock @@ -136,7 +136,7 @@ dev = [ [[package]] name = "dycw-utilities" -version = "0.176.2" +version = "0.176.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "atomicwrites" }, @@ -145,7 +145,7 @@ dependencies = [ { name = "whenever" }, ] wheels = [ - { url = "https://files.pythonhosted.org/packages/de/0c/053a86c84684b9ff01d42d4a8ac7c33be5c87bbb92764b2a43c12766e0e1/dycw_utilities-0.176.2-py3-none-any.whl", hash = "sha256:b7c286c0ba9838ebf6d7e510ef76228574e57afc8c79b142a5ca69f99608f023", size = 205360, upload-time = "2026-01-05T06:27:41.508Z" }, + { url = "https://files.pythonhosted.org/packages/34/a0/5c3234a71202e6c454513c0def077a793b0cc8a4154b84732ed8ec5e4768/dycw_utilities-0.176.4-py3-none-any.whl", hash = "sha256:7db76c539fb39e0cd1bb53c1e8f6534852041c213655389bf149be2a33dcb218", size = 205383, upload-time = "2026-01-06T07:14:39.112Z" }, ] [package.optional-dependencies] @@ -187,14 +187,14 @@ wheels = [ [[package]] name = "hypothesis" -version = "6.149.0" +version = "6.150.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "sortedcontainers" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e3/60/0461f30ba3b97ea8a01ea00d408f8192f9b94e99e431c75f30fb6d65423c/hypothesis-6.149.0.tar.gz", hash = "sha256:27afa07824fbb7785369dfae8e2574ec2ae0b1bdce50f3a327dfc069b79b0a44", size = 474136, upload-time = "2026-01-05T08:20:43.506Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ab/20/37805e8871ffd4bf4958c2e13d608fe1fc914d00f3707b35744ab62751a4/hypothesis-6.150.0.tar.gz", hash = "sha256:ac263bdaf338f4899a9a56e8224304e29b3ad91799e0274783c49abd91ea35ac", size = 474629, upload-time = "2026-01-06T17:08:27.582Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/bc/98/e0e4d75e92ec3b84ed6232baf48eb410fa68650b1fa5102ad52cf378bf97/hypothesis-6.149.0-py3-none-any.whl", hash = "sha256:96420e306421741be4eea4f32bfc7a13360d73400b2e886a5d5e3668a2337a05", size = 541520, upload-time = "2026-01-05T08:20:41.242Z" }, + { url = "https://files.pythonhosted.org/packages/0f/6c/49e29a0b856be17048fa4a216cc21bf914623f66305f6327b7a9bcec6871/hypothesis-6.150.0-py3-none-any.whl", hash = "sha256:caf1f752418c49ac805f11d909c5831aaceb96762aa3895e0c702468dedbe3fe", size = 542064, upload-time = "2026-01-06T17:08:25.643Z" }, ] [[package]]