<commit_before>[mypy]
# Logistics of what code to check and how to handle the data.
scripts_are_modules = True
show_traceback = True
cache_dir = var/mypy-cache

# Options to make the checking stricter.
check_untyped_defs = True
disallow_untyped_defs = True
disallow_any_generics = True
warn_no_return = True
no_implicit_optional = True

# It's useful to try this occasionally, and keep it clean; but when
# someone fixes a type error we don't want to add a burden for them.
#warn_unused_ignores = True

# Options to make the checking *less* strict, which we
# might ideally eliminate.
follow_imports = silent

#
#
# IGNORE MISSING IMPORTS
#
#

# Code that's actually in this tree

[mypy-lib,lib.*]
ignore_missing_imports = True

[mypy-linter_lib.printer]
ignore_missing_imports = True<commit_msg>mypy: Explain what's up with the failed imports of our own code.<commit_after>[mypy]
# Logistics of what code to check and how to handle the data.
scripts_are_modules = True
show_traceback = True
cache_dir = var/mypy-cache

# Options to make the checking stricter.
check_untyped_defs = True
disallow_untyped_defs = True
disallow_any_generics = True
warn_no_return = True
no_implicit_optional = True

# It's useful to try this occasionally, and keep it clean; but when
# someone fixes a type error we don't want to add a burden for them.
#warn_unused_ignores = True

# Options to make the checking *less* strict, which we
# might ideally eliminate.
follow_imports = silent

#
#
# IGNORE MISSING IMPORTS
#
#

# Our code, imported relative to tools/ by scripts in that directory.
# Mypy doesn't know that these are scripts used as __main__, and
# doesn't find the imports.

[mypy-lib,lib.*]
ignore_missing_imports = True

[mypy-linter_lib.printer]
ignore_missing_imports = True
{'fraction_non_alphanumeric': 0.0672316384180791, 'fraction_numerical': 0.0, 'mean_word_length': 4.864238410596027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3237432', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 214}