-
Notifications
You must be signed in to change notification settings - Fork 421
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
[tool.coverage.run] | ||
branch = true | ||
source = ["OpenSSL", "tests/"] | ||
|
||
[tool.coverage.paths] | ||
source = [ | ||
"src/OpenSSL", | ||
".tox/*/lib/python*/site-packages/OpenSSL", | ||
".tox/pypy/site-packages/OpenSSL", | ||
] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
|
||
[tool.mypy] | ||
warn_unused_configs = true | ||
follow_imports = "skip" | ||
strict = true | ||
exclude = ['SSL\.py$'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, should be fine without: |
||
|
||
[[tool.mypy.overrides]] | ||
module = "OpenSSL.crypto" | ||
warn_return_any = false | ||
disallow_any_expr = false | ||
|
||
[[tool.mypy.overrides]] | ||
module = "OpenSSL.rand" | ||
warn_return_any = false | ||
|
||
[[tool.mypy.overrides]] | ||
module = "OpenSSL._util" | ||
warn_return_any = false | ||
|
||
[[tool.mypy.overrides]] | ||
module = "cryptography.*" | ||
ignore_missing_imports = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = "cffi.*" | ||
ignore_missing_imports = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-r s --strict-markers" | ||
testpaths = ["tests"] | ||
|
||
[tool.ruff] | ||
select = ['E', 'F', 'I', 'W', 'UP', 'RUF'] | ||
line-length = 79 | ||
|
There was a problem hiding this comment.
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?There was a problem hiding this comment.
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?There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a73bba7..086cecc