blob: 14693bab66499268f6f20897fbf4fc9a15b2071f [file] [log] [blame]
[tool.mypy]
mypy_path = "src/"
check_untyped_defs = true
# This flags a *lot* of things since things like json.load return Any.
# disallow_any_expr = true
disallow_any_generics = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "silent"
implicit_reexport = false
namespace_packages = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
disable_error_code = "no-redef"
[tool.yapfignore]
ignore_patterns = [
"src/android_rust/paths.py",
"src/android_rust/upstream_tests.py"
]
[tool.yapf]
based_on_style = "yapf"
column_limit = 100
indent_width = 4
continuation_indent_width = 4
allow_multiline_lambdas = true
allow_multiline_dictionary_keys = false
blank_line_before_class_docstring = true
blank_line_before_module_docstring = true
blank_line_before_nested_class_or_def = true
blank_lines_between_top_level_imports_and_variables = 2
coalesce_brackets = true
force_multiline_dict = true
space_between_ending_comma_and_closing_bracket = false
spaces_before_comment = 1
split_all_top_level_comma_separated_values = true
split_arguments_when_comma_terminated = true
split_before_expression_after_opening_paren = true
split_before_first_argument = true
split_complex_comprehension = true
split_penalty_excess_character = 100