# Documentation: https://docs.codecov.io/docs/codecov-yaml

codecov:
  # Avoid "Missing base report" due to committing CHANGES.rst with "[CI skip]"
  # https://github.com/codecov/support/issues/363
  # https://docs.codecov.io/docs/comparing-commits
  allow_coverage_offsets: true

coverage:
  status:
    project:
      default:
        target: 90%
        threshold: 0.5%

comment: off

# Matches 'omit:' in setup.cfg:coverage:run
ignore:
  - "mars/_version.py"
  - "mars/compat.py"
  - "mars/conftest.py"
  - "mars/lib/aio/_runners.py"
  - "mars/lib/aio/lru.py"
  - "mars/lib/bloom_filter.py"
  - "mars/lib/functools32"
  - "mars/lib/futures"
  - "mars/lib/enum.py"
  - "mars/lib/six.py"
  - "mars/lib/nvutils.py"
  - "mars/lib/ordered_set.py"
  - "mars/lib/tblib"
  - "mars/lib/uhashring"
  - "mars/lib/version.py"
  - "mars/learn/contrib/xgboost/tracker.py"
  - "mars/learn/cluster/_k_means_fast.*"
  - "mars/learn/cluster/_k_means_elkan.pyx"
  - "mars/learn/cluster/_k_means_lloyd.pyx"
  - "mars/learn/utils/_cython_blas.*"
  - "mars/tensor/einsum/einsumfunc.py"
  - "mars/storage/cuda.py"
  - "**/*.html"
  - "**/*.pxd"
  - "**/tests"
  # vineyard related things
  # kubedl related things
  - "mars/deploy/kubedl"
  # proxima related things
  - "mars/learn/proxima/**"
  # benchmarks
  - "benchmarks/**"
