neuroinformatics-unit / python-cookiecutter

Utility to create a basic Python project structure with tests, CI etc.
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

[BUG] Test coverage configuration duplicated #54

Open dstansby opened 1 year ago

dstansby commented 1 year ago

Describe the bug Not really a major bug, but the confiuration for collecting test coverage with pytest is duplicated in two places:

To Reproduce https://github.com/neuroinformatics-unit/python-cookiecutter/blob/6fe2e3986fb26ca0e288cee6f182db63973f5607/%7B%7Bcookiecutter.package_name%7D%7D/pyproject.toml#L84

https://github.com/neuroinformatics-unit/python-cookiecutter/blob/6fe2e3986fb26ca0e288cee6f182db63973f5607/%7B%7Bcookiecutter.package_name%7D%7D/tox.ini#L15

Expected behaviour Configuration only in one place. I'd suggest keeping it in pyproject.toml, as then the coverage configuration is accesible outside of using tox, but will still be used by tox.

Log file Please attach the log file if relevant.

Screenshots If applicable, add screenshots to help explain your problem.

Computer used (please complete the following information):

Additional context Add any other context about the problem here.