Skip to content

Commit

Permalink
consolidate dev tools configs into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dulmandakh authored and claudep committed Aug 20, 2024
1 parent 03a4fe6 commit 60b4c0c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
[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

[tool.ruff]
exclude = [
".tox",
Expand Down
22 changes: 0 additions & 22 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,24 +1,2 @@
[bdist_wheel]
universal = 0

;; Coverage.py, Code coverage testing for Python.

[cov:run]
source = sorl
omit = */sorl-thumbnail/sorl/__init__.py
*/sorl/thumbnail/__init__.py
*/sorl/thumbnail/conf/__init__.py
*/sorl/thumbnail/admin/__init__.py

[cov:report]
exclude_lines = pragma: no cover
if __name__ == .__main__.:

;; The pytest framework

[tool:pytest]
python_files = test_*.py *tests.py
norecursedirs = .* tmp* __pycache__
testpaths = tests
django_find_project = false

0 comments on commit 60b4c0c

Please sign in to comment.