diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:54:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:58:39 +0000 |
commit | 129a1fb4dbc375be0fa926964aa1be46a0cdbbef (patch) | |
tree | 04c0088df47415b24a5be1325d3656b8c3881c04 /pyproject.toml | |
parent | Initial commit. (diff) | |
download | debputy-129a1fb4dbc375be0fa926964aa1be46a0cdbbef.tar.xz debputy-129a1fb4dbc375be0fa926964aa1be46a0cdbbef.zip |
Adding upstream version 0.1.21.upstream/0.1.21
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..73119d7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,45 @@ +[tool.coverage.run] +branch = true +source = ["."] +omit = [ + "*/lib/python*/*", + "*/dist-packages/*", + "*/tests/*", +] + +[tool.coverage.report] +# Lets not force ourselves to sprinkle "pragma: no cover" in the following cases +exclude_lines = [ + # Have to re-enable the standard pragma + "pragma: no cover", + + # Ignore code that is not intended to be run + "if TYPE_CHECKING:", + "raise AssertionError", + + # Ignore "..." (overload) + "^\\s+[.][.][.]\\s*$", + + # We cannot hit this via tests. On the flip-side, we should ensure this + # only call a main() (or a similar function). + "if __name__ == .__main__.:", + + # Do not complain about abstract methods as they are not run + "@(abc\\.)?abstractmethod", + "raise NotImplementedError([(][)]|\\s*$)", +] + +[tool.pytest.ini_options] +addopts = "--doctest-modules" +norecursedirs = [ + "local", + "debian", +] +pythonpath = [ + "src" +] +testpaths = [ + "src", + "tests", + "self-hosting-plugins", +] |