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] [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