Skip to content

Activate pre-commit hooks in copilot-setup-steps workflow#92

Merged
thawn merged 2 commits intomasterfrom
copilot/activate-pre-commit-hooks
Dec 31, 2025
Merged

Activate pre-commit hooks in copilot-setup-steps workflow#92
thawn merged 2 commits intomasterfrom
copilot/activate-pre-commit-hooks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 31, 2025

The copilot-setup-steps workflow sets up the development environment but wasn't activating pre-commit hooks, meaning commits made during Copilot sessions would bypass code quality checks.

Changes

  • Install [dev] extras alongside [test] to include pre-commit and formatters (black, flake8, isort)
  • Add step to run pre-commit install after dependency installation, activating Git hooks in .git/hooks/

This aligns the workflow with the documented development setup in CONTRIBUTING.md and ensures code quality checks run automatically on commits made during Copilot sessions.

Original prompt

.github/workflows/copilot-setup-steps.yml: Make sure pre-commit hooks are activated after checking out the repository


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: thawn <1308449+thawn@users.noreply.github.com>
Copilot AI changed the title [WIP] Ensure pre-commit hooks are activated after repository checkout Activate pre-commit hooks in copilot-setup-steps workflow Dec 31, 2025
Copilot AI requested a review from thawn December 31, 2025 12:19
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@ebb6096). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##             master     #92   +/-   ##
========================================
  Coverage          ?   0.00%           
========================================
  Files             ?       1           
  Lines             ?     184           
  Branches          ?       0           
========================================
  Hits              ?       0           
  Misses            ?     184           
  Partials          ?       0           
Flag Coverage Δ
javascript 0.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thawn thawn marked this pull request as ready for review December 31, 2025 12:38
@thawn thawn merged commit f5900c0 into master Dec 31, 2025
12 checks passed
@thawn thawn deleted the copilot/activate-pre-commit-hooks branch December 31, 2025 12:39
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.

3 participants