Skip to content

Commit

Permalink
Omit tests in codecov report (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBoothroyd authored Jan 30, 2022
1 parent ad6c667 commit abecd9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ dependencies:
- pytest
- pytest-cov
- codecov
- coverage <6.3 # fix hangs on GH, see coveragepy/issues/1310
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ exclude_lines =
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
omit =
# Omit the tests
*/tests/*
# Omit the CLI as codecov does not work well with the multi-processing code.
nagl/cli/label/*
nagl/cli/prepare/*
# Omit generated versioneer
nagl/_version.py

[flake8]
# Flake8, PyFlakes, etc
Expand Down

0 comments on commit abecd9f

Please sign in to comment.