mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
* fix type annotation in configure.py and init.py * enable mypy redundant-expr and remove redundant expressions
68 lines
1.5 KiB
Plaintext
68 lines
1.5 KiB
Plaintext
[mypy]
|
|
files = benchmarks,build_scripts,chia,tools,*.py
|
|
show_error_codes = True
|
|
warn_unused_ignores = True
|
|
enable_error_code = redundant-expr
|
|
|
|
disallow_any_generics = True
|
|
disallow_subclassing_any = True
|
|
disallow_untyped_calls = True
|
|
disallow_untyped_defs = True
|
|
disallow_incomplete_defs = True
|
|
check_untyped_defs = True
|
|
disallow_untyped_decorators = True
|
|
no_implicit_optional = True
|
|
warn_return_any = True
|
|
no_implicit_reexport = True
|
|
strict_equality = True
|
|
warn_redundant_casts = True
|
|
|
|
[mypy-chia-exclusions]
|
|
disable_error_code = annotation-unchecked
|
|
disallow_any_generics = False
|
|
disallow_subclassing_any = False
|
|
disallow_untyped_calls = False
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
disallow_untyped_decorators = False
|
|
no_implicit_optional = False
|
|
warn_return_any = False
|
|
no_implicit_reexport = False
|
|
strict_equality = False
|
|
|
|
[mypy-chia-strict-bytes-exclusions]
|
|
disable_error_code = arg-type,call-overload,override,no-any-return
|
|
|
|
# TODO: stop ignoring these and get hints for as many as possible
|
|
|
|
[mypy-chia_puzzles_py.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-chiabip158.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-chiapos.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-chiavdf.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-chialisp.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-dnslib.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-hsms.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-keyrings.cryptfile.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-miniupnpc.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-testconfig.*]
|
|
ignore_missing_imports = True
|