Skip to content

Commit

Permalink
More strict mypy, fixed the remaining errors.
Browse files Browse the repository at this point in the history
Black

Regenerated API.

Ignoring misc errors.
  • Loading branch information
hovi committed Dec 15, 2022
1 parent 45ed00d commit fcac988
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 190 deletions.
2 changes: 1 addition & 1 deletion PythonClient/features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from spaceengineers.proxy import SpaceEngineersProxy


def before_all(context: Context):
def before_all(context: Context) -> None:
"""
Runs before all tests, context can be used to save anything.
"""
Expand Down
12 changes: 11 additions & 1 deletion PythonClient/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
[mypy]
#strict = True
strict = True
disable_error_code = empty-body

[mypy-features.*]
disable_error_code = import

[mypy-spaceengineers.api]
disable_error_code = no-untyped-def

[mypy-spaceengineers.models]
disable_error_code = misc


[mypy-features.steps.*]
disable_error_code = no-redef, import

[mypy-examples.*]
ignore_missing_imports = True
Loading

0 comments on commit fcac988

Please sign in to comment.