From 7743b1f71f4ffd09b92d6b89d2f109cc206f74ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20R=C3=BChling?= Date: Mon, 20 Oct 2025 19:11:57 +0200 Subject: [PATCH 1/2] fix deploy.yml. autoupdate pre-commit. --- .github/workflows/deploy.yml | 10 ++++------ .pre-commit-config.yaml | 10 +++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9078145..453ae30 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - "v[0-9]+.[0-9]+.[0-9]+" jobs: test: @@ -18,17 +18,17 @@ jobs: environment: release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: 3.11 - name: install build dependencies run: python3 -m pip install build - + - name: build package run: python3 -m build --sdist --wheel --outdir dist/ @@ -41,8 +41,6 @@ jobs: - name: publish package (pypi) if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: "https://pypi.org/legacy/" - name: publish package (test.pypi) if: ${{ github.event_name == 'workflow_dispatch' }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9826ff8..f504c04 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,32 +1,32 @@ repos: - repo: https://github.com/myint/autoflake - rev: v2.3.0 + rev: v2.3.1 hooks: - id: autoflake args: ["--in-place", "--imports=fillname", "--ignore-init-module-imports", "--remove-unused-variables"] exclude: ^.github/ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace exclude: ^.github/ - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort exclude: ^.github/ - repo: https://github.com/psf/black - rev: 24.2.0 + rev: 25.9.0 hooks: - id: black exclude: ^.github/ - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 1.0.0 hooks: - id: mdformat args: ["--wrap", "79"] From 676cef6b46111a226c6cc990371c1e1fe4b66e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20R=C3=BChling?= Date: Mon, 20 Oct 2025 19:12:58 +0200 Subject: [PATCH 2/2] formatting --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 453ae30..505100b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: tags: - - "v[0-9]+.[0-9]+.[0-9]+" + - 'v[0-9]+.[0-9]+.[0-9]+' jobs: test: @@ -37,7 +37,6 @@ jobs: with: name: package path: dist/ - - name: publish package (pypi) if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} uses: pypa/gh-action-pypi-publish@release/v1