[tool.black] line-length = 100 extend-exclude = "gdb-pt-dump" [tool.mypy] strict_optional = false check_untyped_defs = true allow_untyped_globals = true allow_redefinition = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true # warn_return_any = true # warn_unreachable = true show_error_context = true pretty = true show_error_codes = true incremental = false disable_error_code = [ # Lots of dynamic attribute access "attr-defined", # https://github.com/python/mypy/issues/6232 "assignment" ] [[tool.mypy.overrides]] module = [ # Capstone constants "pwndbg.disasm.*", "pwndbg.gdblib.nearpc", # Module fields "pwndbg.gdblib.typeinfo", "pwndbg.gdblib.elf", "pwndbg.auxv", ] disable_error_code = ["name-defined"] [[tool.mypy.overrides]] module = ["capstone.*", "unicorn.*", "pwnlib.*", "elftools.*", "ipdb.*", "r2pipe", "pt"] ignore_missing_imports = true [tool.isort] profile = "black" force_single_line = true known_third_party = ["capstone", "unicorn", "psutil", "pycparser", "gdb"] extend_skip_glob = ["gdb-pt-dump/*"] [tool.coverage.run] branch = true parallel = true disable_warnings = ["module-not-imported"] source = ["${SRC_DIR-.}"] omit = ["ida_script.py"] data_file = ".cov/coverage" [tool.coverage.report] omit = ["ida_script.py", "tests/*"]