skyline-apiserver/mypy.ini
Boxiang Zhu 88ef320dc6 feat: Support mypy check
1. support mypy check, tox -e mypy or tox -e pep8
2. fix error of mypy check

Change-Id: I41b0013d271f3c7d3a28e1ea6dd0b083893d8983
2022-07-28 16:09:31 +08:00

48 lines
880 B
INI

# https://mypy.readthedocs.io/en/stable/config_file.html
[mypy]
# Import discovery
ignore_missing_imports = true
follow_imports = normal
# Platform configuration
# Disallow dynamic typing
# Untyped definitions and calls
check_untyped_defs = true
# None and Optional handling
no_implicit_optional = true
strict_optional = true
# Configuring warnings
show_error_context = true
show_column_numbers = true
warn_unused_ignores = true
# Suppressing errors
# Miscellaneous strictness flags
# Configuring error messages
show_error_codes = true
pretty = true
color_output = true
error_summary = true
show_absolute_path = false
# Incremental mode
incremental = true
cache_dir = .mypy_cache
sqlite_cache = false
cache_fine_grained = false
skip_version_check = false
skip_cache_mtime_checks = false
# Advanced options
# Report generation
html_report = mypy-report
# Miscellaneous