-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix(make): improve targets and prerequisites to avoid running a recipe unnecessarily #543
base: staging
Are you sure you want to change the base?
Conversation
45ab465
to
2a4ac41
Compare
@@ -162,14 +169,18 @@ check-mypy: | |||
pre-commit run mypy --all-files | |||
check-actionlint: | |||
pre-commit run actionlint --all-files | |||
check: | |||
check: .venv/checked-on | |||
.venv/checked-on: $(PACKAGE_DEPS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we are introducing back pre-commit
running on staged files only (instead of all files)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PACKAGE_DEPS
contains all current Python files in the src/package/
folder, and if any of those changes since make
last touched .venv/checked-on
then we run the recipe again. Whether they’re staged or not shouldn’t make a difference.
No description provided.