From d626f58e3f097dc462e67d657e905712c9f752a2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 01:22:13 +0000 Subject: [PATCH 1/3] chore(deps): renovate: astral-sh/ruff-pre-commit to v0.15.4 --- .pre-commit-config.yaml | 2 +- tests/data/test_package_generation/.pre-commit-config.yaml | 2 +- {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4439ec5a..83aca86e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: ^{{cookiecutter.project_slug}}/|^tests/data/test_package_generation/ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.4 hooks: - id: ruff args: diff --git a/tests/data/test_package_generation/.pre-commit-config.yaml b/tests/data/test_package_generation/.pre-commit-config.yaml index 4db083bd..97659ef5 100644 --- a/tests/data/test_package_generation/.pre-commit-config.yaml +++ b/tests/data/test_package_generation/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.4 hooks: - id: ruff - id: ruff-format diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 4db083bd..97659ef5 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.4 hooks: - id: ruff - id: ruff-format From 2de5a135c6030d1d2eb85352df493c24a69fd091 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Mon, 2 Mar 2026 09:50:08 +0000 Subject: [PATCH 2/3] Use new hook name --- .pre-commit-config.yaml | 2 +- tests/data/test_package_generation/.pre-commit-config.yaml | 2 +- {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83aca86e..5334d2b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.4 hooks: - - id: ruff + - id: ruff-check args: - --config=pyproject.toml - id: ruff-format diff --git a/tests/data/test_package_generation/.pre-commit-config.yaml b/tests/data/test_package_generation/.pre-commit-config.yaml index 97659ef5..617c3d66 100644 --- a/tests/data/test_package_generation/.pre-commit-config.yaml +++ b/tests/data/test_package_generation/.pre-commit-config.yaml @@ -2,7 +2,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.4 hooks: - - id: ruff + - id: ruff-check - id: ruff-format - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.47.0 diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 97659ef5..617c3d66 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -2,7 +2,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.4 hooks: - - id: ruff + - id: ruff-check - id: ruff-format - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.47.0 From 262d916b4411112eda417611db3c2ffb698d8f10 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Mon, 2 Mar 2026 09:50:19 +0000 Subject: [PATCH 3/3] Fix linting bugs --- tests/test_package_generation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_package_generation.py b/tests/test_package_generation.py index ac6f3b23..daa85be0 100644 --- a/tests/test_package_generation.py +++ b/tests/test_package_generation.py @@ -21,14 +21,14 @@ def get_all_files_folders(root_path: pathlib.Path) -> set[pathlib.Path]: file_set: set[pathlib.Path] = set() for dirpath, _, filenames in os.walk(root_path): dirpath_path = pathlib.Path(dirpath).relative_to(root_path) - if dirpath_path.name in ["__pycache__"]: + if dirpath_path.name == "__pycache__": continue # Add this directory file_set.update((dirpath_path,)) # Add any files in it for filename in filenames: - if filename in [".DS_Store"]: + if filename == ".DS_Store": continue file_set.update((dirpath_path / filename,))