From 5357d19232c798a59b66ff8a3fce570daa442fd5 Mon Sep 17 00:00:00 2001 From: sfmig <33267254+sfmig@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:35:43 +0000 Subject: [PATCH 1/3] Update ruff precommit following PR #127 --- {{cookiecutter.package_name}}/.pre-commit-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.package_name}}/.pre-commit-config.yaml b/{{cookiecutter.package_name}}/.pre-commit-config.yaml index b828ba1..a5531a2 100644 --- a/{{cookiecutter.package_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.package_name}}/.pre-commit-config.yaml @@ -19,11 +19,13 @@ repos: args: [--fix=lf] - id: requirements-txt-fixer - id: trailing-whitespace - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.6.3 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.7.2 hooks: - id: ruff + args: [ --config=pyproject.toml ] - id: ruff-format + args: [ --config=pyproject.toml ] - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.10.1 hooks: From 9359be6f191b09034a7cfa200ffe53887cf22e37 Mon Sep 17 00:00:00 2001 From: sfmig <33267254+sfmig@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:37:39 +0000 Subject: [PATCH 2/3] Update pre-commit hooks version to match outer precommit file --- {{cookiecutter.package_name}}/.pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.package_name}}/.pre-commit-config.yaml b/{{cookiecutter.package_name}}/.pre-commit-config.yaml index a5531a2..0c97284 100644 --- a/{{cookiecutter.package_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.package_name}}/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-docstring-first - id: check-executables-have-shebangs From 08651cdbbc6239038d2ed5fa4c8458bdced6e4d6 Mon Sep 17 00:00:00 2001 From: sfmig <33267254+sfmig@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:38:58 +0000 Subject: [PATCH 3/3] Update mypy and check-manifest in template precommit file (they dont get update by precommit bot) --- {{cookiecutter.package_name}}/.pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.package_name}}/.pre-commit-config.yaml b/{{cookiecutter.package_name}}/.pre-commit-config.yaml index 0c97284..4dbb495 100644 --- a/{{cookiecutter.package_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.package_name}}/.pre-commit-config.yaml @@ -27,13 +27,13 @@ repos: - id: ruff-format args: [ --config=pyproject.toml ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: - types-setuptools - repo: https://github.com/mgedmin/check-manifest - rev: "0.49" + rev: "0.50" hooks: - id: check-manifest args: [--no-build-isolation]