Skip to content

Move configuration of tools to pyproject.toml#2686

Merged
lovelydinosaur merged 2 commits intoencode:masterfrom
Secrus:move-configs
May 3, 2023
Merged

Move configuration of tools to pyproject.toml#2686
lovelydinosaur merged 2 commits intoencode:masterfrom
Secrus:move-configs

Conversation

@Secrus
Copy link
Copy Markdown
Contributor

@Secrus Secrus commented Apr 28, 2023

Summary

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • [No changes needed] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [No changes needed] I've updated the documentation accordingly.

I have noticed that the tools configured by setup.cfg file are the ones that can be configured in pyproject.toml which already held some of the tools configurations. Since setup.cfg is inherently connected with setuptools which is not used in this project. I didn't see a need for a discussion in this case.

# Tests & Linting
black==23.3.0
coverage==7.2.2
coverage[toml]==7.2.2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did you add this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it to be able to read from the pyproject?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

exactly. from what I have seen, coverage requires toml extra to work with pyproject.toml configs.

@Kludex
Copy link
Copy Markdown
Contributor

Kludex commented May 2, 2023

Since we've removed flake8 (which was the only project holding this change), I think this is a good change. 👍

@lovelydinosaur lovelydinosaur merged commit df5dbc0 into encode:master May 3, 2023
@Kludex
Copy link
Copy Markdown
Contributor

Kludex commented May 3, 2023

Same PR welcome on other encode projects. 👀 🙏

@Secrus
Copy link
Copy Markdown
Contributor Author

Secrus commented May 4, 2023

Same PR welcome on other encode projects. eyes pray

Sure, give me a moment ;)

@Secrus Secrus deleted the move-configs branch May 4, 2023 18:36
samclearman pushed a commit to titanmsp/httpx that referenced this pull request Apr 26, 2025
Co-authored-by: Tom Christie <tom@tomchristie.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants