diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index c2dd13fa..00000000 --- a/.coveragerc +++ /dev/null @@ -1,5 +0,0 @@ -# .coveragerc to control coverage.py -[run] -omit = - */_version.py - */tests/* diff --git a/pyproject.toml b/pyproject.toml index de3e2ce6..3a69b4dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,10 +50,15 @@ write_to = "delocate/_version.py" minversion = "6.0" required_plugins = ["pytest-console-scripts>=1.4.0", "pytest-cov"] testpaths = ["delocate/"] -addopts = ["--doctest-modules", "--cov=delocate", "--cov-config=.coveragerc"] +addopts = ["--doctest-modules", "--cov=delocate", "--cov-config=pyproject.toml"] log_file_level = "DEBUG" +[tool.coverage.run] +# Exclude files from coverage +omit = ["*/_version.py", "*/tests/*"] + + [tool.mypy] files = ["*.py", "delocate"] python_version = "3.9"