From 11abe021dd9fca2328683e5a90143ab303c66eb3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:14:27 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/renovatebot/pre-commit-hooks: 39.7.1 → 39.106.0](https://github.com/renovatebot/pre-commit-hooks/compare/39.7.1...39.106.0) - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.9.1) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.14.1) - [github.com/astral-sh/uv-pre-commit: 0.4.30 → 0.5.18](https://github.com/astral-sh/uv-pre-commit/compare/0.4.30...0.5.18) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 From cd8ff9b24017a29f280a45f426a4d00e391649a0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:15:13 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- lice2/config.py | 2 +- lice2/core.py | 3 +-- lice2/helpers.py | 3 +-- requirements.txt | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) 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