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

Put mypy, coverage.py, pytest in pyproject #1273

Merged
merged 2 commits into from Dec 5, 2023

Conversation

woodruffw
Copy link
Contributor

This consolidates a few free-standing tool configuration files into pyproject.toml, since support for [tool.*] is now widespread.

Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw marked this pull request as ready for review December 5, 2023 21:13
@@ -1,3 +1,48 @@
[tool.coverage.run]
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to depend on coverage[toml] with this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think so -- I'm kind of surprised this passed as-is, but maybe it's because the coverage on the 3.11+ jobs (where [toml] isn't needed) was sufficient?

Copy link
Member

Choose a reason for hiding this comment

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

Probably a bunch of other stuff depends on toml so it's implicitly there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

warn_unused_configs = true
follow_imports = "skip"
strict = true
exclude = ['SSL\.py$']
Copy link
Member

Choose a reason for hiding this comment

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

No need for the (?x)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, should be fine without: (?x) enables re.VERBOSE, which doesn't have any effect here (since there's no comments or significant whitespace in the regexp itself).

Signed-off-by: William Woodruff <william@trailofbits.com>
@alex alex merged commit 5dc1044 into pyca:main Dec 5, 2023
34 checks passed
@woodruffw woodruffw deleted the ww/more-pyproject branch December 5, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants