Skip to content

Use pytest installed via pipx #19702

Answered by brettcannon
cbrnr asked this question in Q&A
Aug 18, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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 😅).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cbrnr
Comment options

Answer selected by cbrnr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants