Skip to content

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

Merged
sethmlarson merged 2 commits into
urllib3:mainfrom
pquentin:pyproject.toml
Nov 10, 2022
Merged

Configure pytest, isort and mypy in pyproject.toml#2785
sethmlarson merged 2 commits into
urllib3:mainfrom
pquentin:pyproject.toml

Conversation

@pquentin

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@sethmlarson sethmlarson left a comment

Copy link
Copy Markdown
Member

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