From 4efc0345af44ab82b54313c1fb32fbea4cb170a9 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Tue, 20 Aug 2024 19:12:07 +0800 Subject: [PATCH] tools config --- pyproject.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 275ff7a76..5aa0c4b5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,29 @@ classifiers=[ Homepage = "https://sorl-thumbnail.readthedocs.io/en/latest/" Repository = "https://github.com/jazzband/sorl-thumbnail" + +[tool.coverage.run] + source = ["sorl"] + omit = [ + "*/sorl-thumbnail/sorl/__init__.py", + "*/sorl/thumbnail/__init__.py", + "*/sorl/thumbnail/conf/__init__.py", + "*/sorl/thumbnail/admin/__init__.py", + ] + + [tool.coverage.report] + exclude_lines = [ + "pragma: no cover", + "if __name__ == .__main__.:", + ] + + [tool.pytest.ini_options] + python_files = ["test_*.py", "*tests.py"] + norecursedirs =[".*", "tmp*", "__pycache__"] + testpaths = ["tests"] + django_find_project = false + +# below line is required to generating versions with setuptools_scm [tool.setuptools_scm] [tool.ruff]