-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
169 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
; We don't run mypy in the CI. This is just to help anyone who would like to use it manually. | ||
; Namely, the mypy_primer tool. | ||
[mypy] | ||
; strict = true | ||
show_column_numbers = true | ||
mypy_path = $MYPY_CONFIG_FILE_DIR/typings | ||
implicit_reexport = true | ||
|
||
strict = true | ||
; Implicit return types ! | ||
check_untyped_defs = true | ||
disallow_untyped_calls = false | ||
disallow_untyped_defs = false | ||
disallow_incomplete_defs = false | ||
disable_error_code = return | ||
|
||
; exclude mypyc build | ||
exclude = .*(build)/.* | ||
|
||
; Auto-generated code, not much we can do there | ||
[mypy-gen.*] | ||
disable_error_code = attr-defined, arg-type | ||
|
||
; Of course my stubs are going to be incomplete. Otherwise they'd be on typeshed! | ||
; Mypy becomes really whack with its errors inside these stubs though | ||
mypy_path = typings,src | ||
; exclude doesn't work with strict=true Why? | ||
exclude = .*(typings|gen)/.* | ||
|
||
[mypy-gen.*,cv2.*,] | ||
; strict=false ; Doesn't work in overrides | ||
follow_imports = skip | ||
implicit_reexport = true | ||
strict_optional = false | ||
disable_error_code = attr-defined, misc, name-defined | ||
[mypy-cv2.*] | ||
disable_error_code = misc, name-defined, override |
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
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.