-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* crypto: Add type annotations * Don’t redefine var mypy complains about the redefinition * _util: Add type annotations * rand: Add type annotations * Prepare package & CI for running mypy * fix toxenv name Co-authored-by: Maximilian Hils <github@maximilianhils.com>
- Loading branch information
Showing
7 changed files
with
319 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include LICENSE MANIFEST.in *.rst tox.ini .coveragerc | ||
exclude codecov.yml .readthedocs.yml | ||
exclude codecov.yml .readthedocs.yml mypy.ini | ||
recursive-include tests *.py | ||
recursive-include doc * | ||
prune doc/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[mypy] | ||
warn_unused_configs = True | ||
follow_imports = skip | ||
strict = True | ||
|
||
exclude = (?x)( | ||
SSL\.py$ | ||
) | ||
|
||
[mypy-OpenSSL.crypto] | ||
warn_return_any = False | ||
disallow_any_expr = False | ||
|
||
[mypy-OpenSSL.rand] | ||
warn_return_any = False | ||
|
||
[mypy-OpenSSL._util] | ||
warn_return_any = False | ||
|
||
[mypy-cryptography.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-cffi.*] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.