Merged
Conversation
This updates local contributor guidance and setup to use prek, introduces smart scoped runs during iteration, and adds a CI prek job that scopes pull request checks by diff while keeping full checks on pushes. Made-with: Cursor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #780 +/- ##
=======================================
Coverage 92.42% 92.42%
=======================================
Files 52 52
Lines 9230 9230
Branches 562 562
=======================================
Hits 8531 8531
Misses 527 527
Partials 172 172 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
maresb
approved these changes
Mar 4, 2026
Contributor
maresb
left a comment
There was a problem hiding this comment.
Awesome!!! I really wanted to do this. Huge 👍 from me!!!
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.
Summary
pre-committoprek, including setup (make setup) and contributor guidance.prekjob that runs scoped checks on pull requests (--from-ref/--to-ref) and full checks on pushes (--all-files).prekruns during iteration.Fixes #779
Changes
AGENTS.md,CONTRIBUTING.md,.cursor/rules/basic.mdc, and.github/workflows/welcome.yml.Makefilenow installs hooks viaprek install -f;pyproject.tomlextras now depend onprek; regeneratedenvironment.ymlfrompyproject.toml.prekCI checks to.github/workflows/ci.ymlusingj178/prek-actionwith PR scoping and push full-run behavior.prekusage and smart scoping guidance..github/workflows/label-precommit-prs.ymlsince pre-commit-ci bot labeling is no longer relevant.Testing
$CONDA_EXE run -n CausalPy prek run --all-filesChecklist
prekprekenvironment.ymlregenerated frompyproject.toml