Skip to content

Commit

Permalink
Moved coverage config to pyproject.toml (#1323)
Browse files Browse the repository at this point in the history
toml was added to the standard library in Python 3.11. Therefore need to install the toml extra with coverage for Python3.7-3.10. Refs https://coverage.readthedocs.io/en/7.0.1/config.html#configuration-reference
  • Loading branch information
smithdc1 committed Dec 31, 2022
1 parent fc8a568 commit 40d4b48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ target-version = ['py37']
[tool.isort]
profile = "black"
line_length = 119

[tool.coverage.run]
branch = true
2 changes: 1 addition & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coverage
coverage[toml]
pytest
pytest-cov
pytest-django
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ license_file = LICENSE.txt

[tool:pytest]
DJANGO_SETTINGS_MODULE= tests.test_settings

[coverage:run]
branch = True

0 comments on commit 40d4b48

Please sign in to comment.