-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update mypy and move to toml (#547)
* Updates mypy to 0.950 * Uses pyproject.toml insted of mypy.ini - nicer config, fewer files * Uses `strict = true` instead of the long list (supported last few versions) * Uses more precise include ignoring, and includes a couple of typing requirements * Exposes a variable type change, fixed * Adds a few extra (easy) strictness and config flags. Didn't add unreachable, since it was more involved. Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
- Loading branch information
Showing
5 changed files
with
14 additions
and
21 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
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,3 +1,13 @@ | ||
[build-system] | ||
requires = ['setuptools >= 40.8.0', 'wheel'] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
|
||
[tool.mypy] | ||
strict = true | ||
show_error_codes = true | ||
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["_manylinux"] | ||
ignore_missing_imports = true |