Skip to content
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

Configure pytest, isort and mypy in pyproject.toml #2785

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

pquentin
Copy link
Member

So this was a contributor friendly issue but #2780 and #2784 both got confused about this, adding settings in pyproject.toml for pytest and isort respectively, so I've decided to just do it myself to avoid more problems with this in the future.

Closes #2773

@pquentin pquentin changed the title Configure ptyest, isort and mypy in pyproject.toml Configure pytest, isort and mypy in pyproject.toml Nov 10, 2022
@pquentin pquentin added the Skip Changelog Pull requests that don't require a changelog entry label Nov 10, 2022
hramezani
hramezani previously approved these changes Nov 10, 2022
graingert
graingert previously approved these changes Nov 10, 2022
@shadycuz
Copy link
Contributor

It wasn't confusion, I just missed it. It's easy to do that when there is multiple places you could put these settings. Like towncrier.toml, pyproject.toml, setup.py and setup.cfg. I should have done a keyword search, that's my fault.

It's a shame flake8 won't move to .toml. Im working on a contributors guide and I can put something in it about tool configuration. Would like setup.cfg or pyproject.toml to be the preferred location?

@pquentin
Copy link
Member Author

Sure, both of you could have searched but you didn't and used pyproject.toml. So we have empirical data showing that preferring pyproject.toml will help contributors!

sethmlarson
sethmlarson previously approved these changes Nov 10, 2022
Copy link
Member

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pquentin pquentin dismissed stale reviews from sethmlarson, graingert, and hramezani via eb0d651 November 10, 2022 17:25
@sethmlarson sethmlarson merged commit 1c55de6 into urllib3:main Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Pull requests that don't require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move pytest, isort and mypy configuration from setup.cfg to pyproject.toml
5 participants