Skip to content

Commit 35a08ed

Browse files
committed
Fix bad pre-commit hook version number
1 parent 9b0459b commit 35a08ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/package_version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn default_version(package: &PythonPackage) -> String {
164164
pub fn default_pre_commit_rev(hook: &PreCommitHook) -> String {
165165
match hook {
166166
PreCommitHook::MyPy => "v1.11.1".to_string(),
167-
PreCommitHook::PreCommit => "v4.7.1".to_string(),
167+
PreCommitHook::PreCommit => "v4.6.0".to_string(),
168168
PreCommitHook::Ruff => "v0.5.6".to_string(),
169169
}
170170
}

src/snapshots/python_project__project_generator__tests__save_pre_commit_file.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/project_generator.rs
33
expression: content
44
---
5-
"repos:\n - repo: https://github.com/pre-commit/pre-commit-hooks\n rev: v4.7.1\n hooks:\n - id: check-added-large-files\n - id: check-toml\n - id: check-yaml\n - id: debug-statements\n - id: end-of-file-fixer\n - id: trailing-whitespace\n - repo: https://github.com/pre-commit/mirrors-mypy\n rev: v1.11.1\n hooks:\n - id: mypy\n - repo: https://github.com/astral-sh/ruff-pre-commit\n rev: v0.5.6\n hooks:\n - id: ruff\n args: [--fix, --exit-non-zero-on-fix]\n - id: ruff-format\n"
5+
"repos:\n - repo: https://github.com/pre-commit/pre-commit-hooks\n rev: v4.6.0\n hooks:\n - id: check-added-large-files\n - id: check-toml\n - id: check-yaml\n - id: debug-statements\n - id: end-of-file-fixer\n - id: trailing-whitespace\n - repo: https://github.com/pre-commit/mirrors-mypy\n rev: v1.11.1\n hooks:\n - id: mypy\n - repo: https://github.com/astral-sh/ruff-pre-commit\n rev: v0.5.6\n hooks:\n - id: ruff\n args: [--fix, --exit-non-zero-on-fix]\n - id: ruff-format\n"

0 commit comments

Comments
 (0)