-
-
Couldn't load subscription status.
- Fork 10.8k
[Misc] Using ruff-format for smaller sets of directories #14485
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 |
|---|---|---|
|
|
@@ -9,11 +9,15 @@ repos: | |
| - id: yapf | ||
| args: [--in-place, --verbose] | ||
| additional_dependencies: [toml] # TODO: Remove when yapf is upgraded | ||
| exclude: "^(csrc|vllm/assets|vllm/inputs|vllm/multimodal|vllm/usage)/.*" | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.9.3 | ||
| hooks: | ||
| - id: ruff | ||
| args: [--output-format, github, --fix] | ||
| - id: ruff | ||
| args: [--output-format, github, --fix, --exit-non-zero-on-fix, --show-fixes] | ||
| - id: ruff-format | ||
| types_or: [python] | ||
|
||
| exclude: "^(?!(csrc|vllm/assets|vllm/inputs|vllm/multimodal|vllm/usage)/).*" | ||
|
||
| - repo: https://github.com/codespell-project/codespell | ||
| rev: v2.4.0 | ||
| hooks: | ||
|
|
@@ -24,6 +28,7 @@ repos: | |
| rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # 6.0.0 | ||
| hooks: | ||
| - id: isort | ||
| exclude: "^(csrc|vllm/assets|vllm/inputs|vllm/multimodal|vllm/usage)/.*" | ||
|
||
| - repo: https://github.com/pre-commit/mirrors-clang-format | ||
| rev: v19.1.7 | ||
| hooks: | ||
|
|
||
This file was deleted.
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.
Could this exclude be moved to the
pyproject.toml? Generally we prefer to avoid configuration that only works if the formatting tools are run via pre-commit (i.e. we would like format on save to work correctly)