Skip to content
forked from pydata/xarray

Commit

Permalink
move coverage to pyproject.toml and exclude typechecking things (pyda…
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck authored Sep 28, 2022
1 parent 2c43663 commit 0b0b8f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

20 changes: 16 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"setuptools-scm[toml]>=3.4",
"setuptools-scm-git-archive",
"setuptools>=42",
"setuptools-scm[toml]>=3.4",
"setuptools-scm-git-archive",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
fallback_version = "999"

[tool.coverage.run]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
omit = [
"*/xarray/tests/*",
"*/xarray/core/dask_array_compat.py",
"*/xarray/core/npcompat.py",
"*/xarray/core/pdcompat.py",
"*/xarray/core/pycompat.py",
"*/xarray/core/types.py",
]
source = ["xarray"]

0 comments on commit 0b0b8f6

Please sign in to comment.