[mypy]
files = ddtrace,
      docs
exclude = ddtrace/appsec/_iast/_taint_tracking/cmake-build-debug/|ddtrace/appsec/_iast/_taint_tracking/_vendor/|ddtrace/appsec/_iast/_taint_tracking/_deps/|ddtrace/internal/datadog/profiling/build
# mypy thinks .pyx files are scripts and errors out if it finds multiple scripts
scripts_are_modules = true
show_error_codes = true
warn_unused_ignores = true
warn_unused_configs = true
ignore_missing_imports = true
namespace_packages = true
plugins = envier.mypy

[mypy-ddtrace.contrib.*]
ignore_errors = true

[mypy-ddtrace.vendor.*]
ignore_errors = true

[mypy-tests.profiling.collector.pprof_3_pb2]
ignore_errors = true

[mypy-tests.profiling.collector.pprof_312_pb2]
ignore_errors = true

[mypy-tests.profiling.collector.pprof_319_pb2]
ignore_errors = true

[mypy-tests.profiling.collector.pprof_421_pb2]
ignore_errors = true

[mypy-ddtrace.internal.datadog.profiling.ddup]
# ddup.py is a conditional wrapper, providing a default interface when
# _ddup native extension cannot be build; mypy thinks it's redefining classes
ignore_errors = true
