From 5e9ea089ad376d10e638ead07e2594c5f36e6760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20R=C3=BChling?= Date: Thu, 30 Apr 2026 13:53:10 +0200 Subject: [PATCH 1/4] do not run test ci for draft PRs --- .github/workflows/test.yml | 12 +++++++----- .pre-commit-config.yaml | 6 +++--- noxfile.py | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b2fb37..eb6a3ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: push: branches: [devel, main, master, wip] pull_request: + types: [ opened, synchronize, reopened, ready_for_review ] workflow_call: env: @@ -11,6 +12,7 @@ env: jobs: build: + if: github.event.pull_request.draft == false name: test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -19,13 +21,13 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.9 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: python-version: 3.11 + - uses: actions/setup-python@v6 + with: + python-version: 3.13 - name: install requirements run: python -m pip install nox pre-commit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f504c04..61522d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/myint/autoflake - rev: v2.3.1 + rev: v2.3.3 hooks: - id: autoflake args: ["--in-place", "--imports=fillname", "--ignore-init-module-imports", "--remove-unused-variables"] @@ -14,13 +14,13 @@ repos: exclude: ^.github/ - repo: https://github.com/pycqa/isort - rev: 7.0.0 + rev: 9.0.0a3 hooks: - id: isort exclude: ^.github/ - repo: https://github.com/psf/black - rev: 25.9.0 + rev: 26.3.1 hooks: - id: black exclude: ^.github/ diff --git a/noxfile.py b/noxfile.py index 4da1023..40af576 100644 --- a/noxfile.py +++ b/noxfile.py @@ -7,7 +7,7 @@ EDITABLE_TESTS = True PYTHON_VERSIONS = None if "GITHUB_ACTIONS" in os.environ: - PYTHON_VERSIONS = ["3.9", "3.11"] + PYTHON_VERSIONS = ["3.11", "3.13"] EDITABLE_TESTS = False From 14417002ced7f5423c689acafd57fe23526ecf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20R=C3=BChling?= Date: Thu, 30 Apr 2026 13:55:52 +0200 Subject: [PATCH 2/4] fix pre-commit --- src/fillname/utils/parser.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fillname/utils/parser.py b/src/fillname/utils/parser.py index 677c5b6..8ca0d86 100644 --- a/src/fillname/utils/parser.py +++ b/src/fillname/utils/parser.py @@ -20,12 +20,10 @@ def get_parser() -> ArgumentParser: """ parser = ArgumentParser( prog="fillname", - description=dedent( - """\ + description=dedent("""\ fillname filldescription - """ - ), + """), ) levels = [ ("error", logging.ERROR), From 7f59d7f32943524a8690ecda5dba509f3659c3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20R=C3=BChling?= Date: Thu, 30 Apr 2026 15:16:14 +0200 Subject: [PATCH 3/4] fix comments --- .pre-commit-config.yaml | 34 ++++++++++++++++++++-------------- noxfile.py | 2 +- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61522d1..1a7a962 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,19 +2,25 @@ repos: - repo: https://github.com/myint/autoflake rev: v2.3.3 hooks: - - id: autoflake - args: ["--in-place", "--imports=fillname", "--ignore-init-module-imports", "--remove-unused-variables"] - exclude: ^.github/ + - 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: v6.0.0 hooks: - - id: end-of-file-fixer - - id: trailing-whitespace - exclude: ^.github/ + - id: end-of-file-fixer + - id: trailing-whitespace + exclude: ^.github/ - repo: https://github.com/pycqa/isort - rev: 9.0.0a3 + rev: 8.0.0 hooks: - id: isort exclude: ^.github/ @@ -22,14 +28,14 @@ repos: - repo: https://github.com/psf/black rev: 26.3.1 hooks: - - id: black - exclude: ^.github/ + - id: black + exclude: ^.github/ - repo: https://github.com/executablebooks/mdformat rev: 1.0.0 hooks: - - id: mdformat - args: ["--wrap", "79"] - exclude: ^docs/ - additional_dependencies: - - mdformat-gfm + - id: mdformat + args: [ "--wrap", "79" ] + exclude: ^docs/ + additional_dependencies: + - mdformat-gfm diff --git a/noxfile.py b/noxfile.py index 40af576..ebcc070 100644 --- a/noxfile.py +++ b/noxfile.py @@ -7,7 +7,7 @@ EDITABLE_TESTS = True PYTHON_VERSIONS = None if "GITHUB_ACTIONS" in os.environ: - PYTHON_VERSIONS = ["3.11", "3.13"] + PYTHON_VERSIONS = ["3.12", "3.14"] EDITABLE_TESTS = False From af324aa641899807802f3cd1e92c1769efe50935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20R=C3=BChling?= Date: Thu, 30 Apr 2026 15:18:44 +0200 Subject: [PATCH 4/4] fix python versions --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb6a3ac..83456b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,10 +24,10 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-python@v6 with: - python-version: 3.11 + python-version: 3.12 - uses: actions/setup-python@v6 with: - python-version: 3.13 + python-version: 3.14 - name: install requirements run: python -m pip install nox pre-commit