-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Proposal: concise poetry run #940
Comments
While originally #241 was not about this, it has now turned into a discussion about adding something like this, so this is probably a duplicate. Note that you can also |
This would confusion, or even collision in some cases, so this is not something I am willing to add to Poetry |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
My colleague is working to verse our codebase, and I get to review the change.
I see that most poetry
run
invocation are:poetry run python
poetry run pip
poetry run pytest
I with that python, pip, pytest were first-class citizens.
That is:
poetry run python
becomespoetry python
poetry run pip
becomespoetry pip
(arguably poetry own functionality should be used instead)And then:
poetry run pytest
becomespoetry pytest
poetry run <entrypoint>
becomespoetry <entrypoint>
The last part is a little more involved, but the logic is the same, check if argument is an "executable" (python, script, package entry point), and if so, run it.
The text was updated successfully, but these errors were encountered: