diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4439ec5a..5334d2b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ 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 + - 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 4db083bd..617c3d66 100644 --- a/tests/data/test_package_generation/.pre-commit-config.yaml +++ b/tests/data/test_package_generation/.pre-commit-config.yaml @@ -1,8 +1,8 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + 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/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,)) diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 4db083bd..617c3d66 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -1,8 +1,8 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.4 hooks: - - id: ruff + - id: ruff-check - id: ruff-format - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.47.0