Use pytest installed via pipx #19702
-
I'm trying to install tools that I need in all of my projects globally via pipx. This works fine with However, this does not seem to work with Therefore, I was wondering if I missed some setting to make this work. If this is not possible, do you think it would be a good idea to support a globally installed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You haven't missed anything as we don't actively support a globally-installed pytest. The reason we don't do that is because pytest, unlike flake8, has an API that projects rely on via importing |
Beta Was this translation helpful? Give feedback.
You haven't missed anything as we don't actively support a globally-installed pytest. The reason we don't do that is because pytest, unlike flake8, has an API that projects rely on via importing
pytest
and thus is typically way more sensitive to specific package versions per project. As such we don't run into as many people using a global pytest install like we do for linters like flake8. We also don't want to encourage folks to use a globally-installed pytest because of unexpected breakage to their tools if pytest updates in a way that changes their API which would break their code (something that's personally happened to me before 😅).