diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fff60f8..b4ef136 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,13 +12,13 @@ repos: - id: end-of-file-fixer - repo: https://github.com/renovatebot/pre-commit-hooks - rev: 39.7.1 + rev: 39.106.0 hooks: - id: renovate-config-validator files: ^renovate\.json$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.9.1 hooks: - id: ruff name: "lint with ruff" @@ -26,7 +26,7 @@ repos: name: "format with ruff" - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.13.0" # Use the sha / tag you want to point at + rev: "v1.14.1" # Use the sha / tag you want to point at hooks: - id: mypy name: "run mypy" @@ -35,7 +35,7 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.4.30 + rev: 0.5.18 hooks: # Update the uv lockfile - id: uv-lock diff --git a/lice2/config.py b/lice2/config.py index df6d4b3..75f4860 100644 --- a/lice2/config.py +++ b/lice2/config.py @@ -30,7 +30,7 @@ def check_default_license() -> str: f"[red]Invalid default license '[b]{settings.default_license}" "'[/b] in the configuration file, falling back to '[b]bsd3[/b]', " "unless specified otherwise on the command line.\n\nCheck that [b]" - f"{settings.get_settings_folder()/settings.settings_file_name}[/b]'" + f"{settings.get_settings_folder() / settings.settings_file_name}[/b]'" " has a valid value for [b]'default_license'[/b]." ) panel = Panel( diff --git a/lice2/core.py b/lice2/core.py index 6e9ba3e..a5b013b 100644 --- a/lice2/core.py +++ b/lice2/core.py @@ -92,8 +92,7 @@ def main( # noqa: PLR0913 "--file", "-f", help=( - "Name of the output source file (with -l, " - "extension can be omitted)" + "Name of the output source file (with -l, extension can be omitted)" ), ), *, diff --git a/lice2/helpers.py b/lice2/helpers.py index 1c0ce63..3103e41 100644 --- a/lice2/helpers.py +++ b/lice2/helpers.py @@ -288,8 +288,7 @@ def generate_header(args: SimpleNamespace, lang: str) -> None: template = load_package_template(args.license, header=True) except OSError: sys.stderr.write( - "Sorry, no source headers are available for " - f"{args.license}.\n" + f"Sorry, no source headers are available for {args.license}.\n" ) raise typer.Exit(1) from None diff --git a/requirements.txt b/requirements.txt index 7a3487d..33394c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ certifi==2024.8.30 cffi==1.17.1 charset-normalizer==3.4.0 click==8.1.7 -colorama==0.4.6 ; platform_system == 'Windows' +colorama==0.4.6 ; sys_platform == 'win32' cryptography==43.0.3 deprecated==1.2.14 github-changelog-md==0.9.5