-
Notifications
You must be signed in to change notification settings - Fork 82
Add and prefer the ruff-check pre-commit ID
#124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| - id: ruff | ||
| name: ruff | ||
| description: "Run 'ruff' for extremely fast Python linting" | ||
| - id: ruff-check | ||
| name: ruff check | ||
| description: "Run 'ruff check' for extremely fast Python linting" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct a likely oversight from #32 |
||
| entry: ruff check --force-exclude | ||
| language: python | ||
| types_or: [python, pyi, jupyter] | ||
|
|
@@ -10,7 +10,7 @@ | |
| minimum_pre_commit_version: "2.9.2" | ||
|
|
||
| - id: ruff-format | ||
| name: ruff-format | ||
| name: ruff format | ||
| description: "Run 'ruff format' for extremely fast Python formatting" | ||
| entry: ruff format --force-exclude | ||
| language: python | ||
|
|
@@ -19,3 +19,15 @@ | |
| require_serial: true | ||
| additional_dependencies: [] | ||
| minimum_pre_commit_version: "2.9.2" | ||
|
|
||
| # Legacy alias | ||
| - id: ruff | ||
| name: ruff (legacy alias) | ||
|
Comment on lines
+23
to
+25
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Retain the |
||
| description: "Run 'ruff check' for extremely fast Python linting" | ||
| entry: ruff check --force-exclude | ||
| language: python | ||
| types_or: [python, pyi, jupyter] | ||
| args: [] | ||
| require_serial: true | ||
| additional_dependencies: [] | ||
| minimum_pre_commit_version: "2.9.2" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the display name to reflect the sub-command executed.