Conversation
There was a problem hiding this comment.
Pull request overview
Adds CI enforcement for the repository’s existing pre-commit configuration by introducing a dedicated GitHub Actions workflow that runs on PRs to main and dev, and cleans up the pre-commit config by removing commented-out local test hooks.
Changes:
- Added
.github/workflows/pre-commit.ymlto runpre-commit run --all-fileson pull requests. - Removed commented-out local pytest hooks from
.pre-commit-config.yaml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/pre-commit.yml |
New PR-triggered workflow to run pre-commit checks in CI. |
.pre-commit-config.yaml |
Removes commented-out local test hook configuration. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+18
to
+22
| - name: Checkout repository | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| fetch-depth: 0 |
Comment on lines
+14
to
+17
| pre-commit: | ||
| name: Run pre-commit checks | ||
| runs-on: ubuntu-24.04 | ||
| steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new GitHub Actions workflow to automatically run pre-commit checks on pull requests targeting the
mainanddevbranches. It also cleans up the pre-commit configuration by removing commented-out test hooks.CI/CD Improvements:
.github/workflows/pre-commit.ymlthat runs pre-commit checks on pull requests, ensuring code quality and consistency before merging.Configuration Cleanup:
.pre-commit-config.yamlto simplify and clarify the configuration.