Skip to content

Conversation

sjmonson
Copy link
Collaborator

@sjmonson sjmonson commented Jun 5, 2025

Enable auto formatting and fixing of benign linting issues in pre-commit. This makes using pre-commit hooks locally a lot less painful.

@sjmonson sjmonson force-pushed the feat/pre_commit_improve branch from 70226d8 to 1b2a972 Compare June 5, 2025 17:48
@sjmonson sjmonson force-pushed the feat/pre_commit_improve branch from 1b2a972 to af568a1 Compare June 5, 2025 17:58
@sjmonson sjmonson requested review from Copilot and markurtz June 6, 2025 14:57
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves local development usability by enabling auto formatting and fixing of benign linting issues via pre-commit hooks. Key changes include:

  • Adding a new auto-fixing hook ("ruff-format") in the pre-commit configuration.
  • Modifying GitHub workflows to skip the auto-formatting hook during CI runs.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.pre-commit-config.yaml Adds a new "ruff-format" hook with automatic formatting arguments.
.github/workflows/main.yml Updates CI pre-commit run to skip the "ruff-format" hook.
.github/workflows/development.yml Updates development workflow to skip the "ruff-format" hook in CI runs.
Comments suppressed due to low confidence (2)

.github/workflows/main.yml:55

  • Add a comment explaining that skipping the 'ruff-format' hook in CI is intentional to allow auto-formatting exclusively during local development.
run: SKIP=ruff-format pre-commit run --all-files

.github/workflows/development.yml:86

  • Add a comment explaining that skipping the 'ruff-format' hook in CI is intentional to allow auto-formatting exclusively during local development.
run: SKIP=ruff-format pre-commit run --all-files

@markurtz markurtz merged commit 53420e4 into vllm-project:main Jun 10, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants