-
Notifications
You must be signed in to change notification settings - Fork 46
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
common Makefile rules, basic direnv / asdf setup #41
base: master
Are you sure you want to change the base?
Conversation
99ae882
to
31b27e9
Compare
31b27e9
to
5fdac2e
Compare
# Note that rule should be idempotent and return immediately if there's nothing to do, so that | ||
# eg. test can depend on this. Strictly speaking this depends on 'pyproject.toml' too, but often those changes | ||
# are not relevant to dependencies and user can always do `make -B <rule> to force rebuild` | ||
.make-dev-deps: poetry.lock |
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.
it might seem unnecessarily complex to have rule for just poetry install --sync
, but like with many other rules, idea is to create trivial to use abstractions, so that it is easier to change tools afterwards without other needed changes
@@ -0,0 +1,3 @@ | |||
# this if config file for https://asdf-vm.com/ |
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.
Note that nothing would require use of asdf, but it would provide more convenient flow for those who use it
@@ -0,0 +1,12 @@ | |||
# Read .envrc settings in parent dirs if present |
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.
cf before. direnv would not be required, but provided here as sample file
# needs only rule body (repeating .PHONY is not needed) | ||
###################################################################################################### | ||
|
||
.PHONY: 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.
Another option would be to comment these by default, so that rules that are not implemented are not visible with make help
No description provided.