-
Notifications
You must be signed in to change notification settings - Fork 190
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
3 changed files
with
42 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,43 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "cffi >= 1.15.0"] | ||
build-backend = "setuptools.build_meta" | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[tool.isort] | ||
multi_line_output = 3 | ||
include_trailing_comma = True | ||
force_grid_wrap = 0 | ||
use_parentheses = True | ||
ensure_newline_before_comments = True | ||
line_length = 88 | ||
|
||
|
||
[tool.mypy] | ||
disallow_untyped_defs = True | ||
strict_equality = True | ||
warn_unused_configs = True | ||
disallow_any_generics = True | ||
warn_redundant_casts = True | ||
disallow_subclassing_any = True | ||
disallow_untyped_calls = True | ||
disallow_incomplete_defs = True | ||
no_implicit_optional = True | ||
no_implicit_reexport = True | ||
check_untyped_defs = True | ||
warn_unused_ignores = True | ||
|
||
# Because many values are returned directly from CFFI/Chipmunk (and are therefore Any) | ||
warn_return_any = False | ||
|
||
# Because decorators are mostly from CFFI used for callbacks (and therefor untyped) | ||
disallow_untyped_decorators = False | ||
|
||
exclude = [ | ||
'^pymunk\examples\.*$', # exclude examples from type checking | ||
] | ||
|
||
|
||
[mypy-pymunk.util] | ||
# This is not typed | ||
disallow_untyped_defs = False | ||
check_untyped_defs = False |
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