Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
branches: [devel, main, master, wip]
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
workflow_call:

env:
FORCE_COLOR: "3"

jobs:
build:
if: github.event.pull_request.draft == false
name: test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -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
Expand Down
38 changes: 22 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
6 changes: 2 additions & 4 deletions src/fillname/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ def get_parser() -> ArgumentParser:
"""
parser = ArgumentParser(
prog="fillname",
description=dedent(
"""\
description=dedent("""\
fillname
filldescription
"""
),
"""),
)
levels = [
("error", logging.ERROR),
Expand Down