Add mypy.ini
Same mypy.ini as in the CameraTraps repo
This commit is contained in:
Родитель
21ddbd1ecc
Коммит
74b2d6479e
|
@ -102,7 +102,7 @@ def write_list_to_file(output_file: str, strings: Sequence[str]) -> None:
|
|||
f.write('\n'.join(strings))
|
||||
|
||||
|
||||
def read_list_from_file(filename: str):
|
||||
def read_list_from_file(filename: str) -> List[str]:
|
||||
"""Reads a json-formatted list of strings from a file."""
|
||||
assert filename.endswith('.json')
|
||||
with open(filename, 'r') as f:
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# global options
|
||||
[mypy]
|
||||
disallow_incomplete_defs = True
|
||||
namespace_packages = True
|
||||
warn_redundant_casts = True
|
||||
warn_unreachable = True
|
||||
warn_unused_configs = True
|
||||
warn_unused_ignores = True
|
||||
|
Загрузка…
Ссылка в новой задаче