-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Makefile updates #5159
Merged
Merged
Makefile updates #5159
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e126001
Help as default goal
wiredfool dae30d8
Removed co target -- Artifact of previous code review process
wiredfool 85649e2
Makefile: Lint target
wiredfool 4ba769f
documentation
wiredfool 35c396c
the other pip invocation
wiredfool 31b6e80
lint-fix target, currently including black
wiredfool 78a0514
Added isort to lint-fix
radarhere 4f28ed3
Changed tabs to spaces for consistency
radarhere a955e97
Merge pull request #5 from radarhere/makefile_updates
wiredfool 6f3670d
Updated description
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
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.
We use pip like this elsewhere in the Makefile:
Let's also put the make commands in roughly alphabetical order to make them easier to find, and add a help entry for lint:
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's 1:1 for
python3 -m pip install
vspip install
, though to be fair, I think this is an artifact of the original usage, and I'd argue against both this and the inplace target on a general objection to mucking up the source tree. (though, I do understand that it's potentially used for some coverage or automated thing. )Do we have a handle on what people are actually using from this makefile?
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.
Other than the release checklist commands (
release-test
,sdist
) I mainly only usedoc
andclean
.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.
https://snarky.ca/why-you-should-use-python-m-pip/ is the reason for
python3 -m pip
, mostly important for the docs as we often get bug reports caused by installing for a different interpreter.Similarly, I have earlier had problems with
python
in by the Makefile pointing to Python 2, not 3.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.
Also, I'm not a fan of sorting the rules alphabetically, I'd rather group them by purpose.
(especially as there are some new ones coming in that are 1 public, and several dependent ones)