Skip to content
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

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from

Conversation

jenstroeger
Copy link
Owner

No description provided.

@jenstroeger jenstroeger requested a review from behnazh as a code owner May 11, 2023 12:36
eduardocardoso
eduardocardoso previously approved these changes May 15, 2023
@@ -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)
Copy link
Collaborator

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)?

Copy link
Owner Author

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.

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