Skip to content

Commit

Permalink
tools config
Browse files Browse the repository at this point in the history
  • Loading branch information
dulmandakh committed Aug 20, 2024
1 parent 4ba722e commit 4efc034
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4efc034

Please sign in to comment.