diff --git a/pyproject.toml b/pyproject.toml index 182235fbe7f..bc5ec81bf5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,19 +75,17 @@ exclude= [ [tool.coverage.run] omit = [ "astropy/__init__*", - "astropy/conftest.py", - "astropy/*setup*", - "astropy/*/tests/*", - "astropy/tests/test_*", + "astropy/**/conftest.py", + "astropy/**/setup*", + "astropy/**/tests/*", "astropy/extern/*", "astropy/utils/compat/*", "astropy/version*", "astropy/wcs/docstrings*", "*/astropy/__init__*", - "*/astropy/conftest.py", - "*/astropy/*setup*", - "*/astropy/*/tests/*", - "*/astropy/tests/test_*", + "*/astropy/**/conftest.py", + "*/astropy/**/setup*", + "*/astropy/**/tests/*", "*/astropy/extern/*", "*/astropy/utils/compat/*", "*/astropy/version*",