Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #75

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ 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"
- id: ruff-format
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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lice2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions lice2/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
),
),
*,
Expand Down
3 changes: 1 addition & 2 deletions lice2/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading