-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ran pre-commit autoupdate for newer mypy and added mypy config * Removed all prior type ignore comments * Removed redundant cast * Ran mypy_clean_slate to add type ignores
- Loading branch information
1 parent
c418b9d
commit a16f5d9
Showing
8 changed files
with
106 additions
and
56 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[tool.mypy] | ||
# Type-checks the interior of functions without type annotations. | ||
check_untyped_defs = true | ||
# Allows enabling one or multiple error codes globally. Note: This option will | ||
# override disabled error codes from the disable_error_code option. | ||
enable_error_code = [ | ||
"ignore-without-code", | ||
"mutable-override", | ||
"redundant-cast", | ||
"redundant-expr", | ||
"redundant-self", | ||
"truthy-bool", | ||
"truthy-iterable", | ||
"unreachable", | ||
"unused-awaitable", | ||
"unused-ignore", | ||
] | ||
# Shows a short summary line after error messages. | ||
error_summary = false | ||
# Use visually nicer output in error messages: use soft word wrap, show source | ||
# code snippets, and show error location markers. | ||
pretty = true | ||
# Shows column numbers in error messages. | ||
show_column_numbers = true | ||
# Shows error codes in error messages. | ||
# SEE: https://mypy.readthedocs.io/en/stable/error_codes.html#error-codes | ||
show_error_codes = true | ||
# Prefixes each error with the relevant context. | ||
show_error_context = true | ||
# Warns about casting an expression to its inferred type. | ||
warn_redundant_casts = true | ||
# Shows a warning when encountering any code inferred to be unreachable or | ||
# redundant after performing type analysis. | ||
warn_unreachable = true | ||
# Warns about per-module sections in the config file that do not match any | ||
# files processed when invoking mypy. | ||
warn_unused_configs = true | ||
# Warns about unneeded `# type: ignore` comments. | ||
warn_unused_ignores = true | ||
|
||
[[tool.mypy.overrides]] | ||
# Suppresses error messages about imports that cannot be resolved. | ||
ignore_missing_imports = true | ||
# Per-module configuration options | ||
module = [ | ||
"fitz", | ||
"pyzotero", # SEE: https://github.com/urschrei/pyzotero/issues/110 | ||
"sentence_transformers", # SEE: https://github.com/UKPLab/sentence-transformers/issues/1723 | ||
] |
Oops, something went wrong.