Skip to content

Commit 812f385

Browse files
committed
Update pre-commit ruff command
1 parent e09a484 commit 812f385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/project_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ fn create_pre_commit_file(download_latest_packages: bool) -> String {
257257
}
258258
PreCommitHook::Ruff => {
259259
let info = format!(
260-
"\n - repo: {}\n rev: {}\n hooks:\n - id: ruff\n args: [--fix, --exit-non-zero-on-fix]\n - id: ruff-format",
260+
"\n - repo: {}\n rev: {}\n hooks:\n - id: ruff-check\n args: [--fix, --exit-non-zero-on-fix]\n - id: ruff-format",
261261
hook.repo, hook.rev
262262
);
263263
pre_commit_str.push_str(&info);

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: v1.0.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.0.0\n hooks:\n - id: mypy\n - repo: https://github.com/astral-sh/ruff-pre-commit\n rev: v1.0.0\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: v1.0.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.0.0\n hooks:\n - id: mypy\n - repo: https://github.com/astral-sh/ruff-pre-commit\n rev: v1.0.0\n hooks:\n - id: ruff-check\n args: [--fix, --exit-non-zero-on-fix]\n - id: ruff-format\n"

0 commit comments

Comments
 (0)