diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b2fb37..83456b3 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 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: - python-version: 3.9 - - uses: actions/setup-python@v5 + python-version: 3.12 + - uses: actions/setup-python@v6 with: - python-version: 3.11 + python-version: 3.14 - 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..1a7a962 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,35 +1,41 @@ 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"] - 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: 7.0.0 + rev: 8.0.0 hooks: - id: isort exclude: ^.github/ - repo: https://github.com/psf/black - rev: 25.9.0 + 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 4da1023..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.9", "3.11"] + PYTHON_VERSIONS = ["3.12", "3.14"] EDITABLE_TESTS = False 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),