Skip to content

Improve pre-commit usablity for local development #181

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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 markurtz and Copilot 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

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.

1 participant