DiamondLightSource / python3-pip-skeleton

Archived in favour of https://github.com/DiamondLightSource/python-copier-template
Apache License 2.0
4 stars 4 forks source link

Add explicit dependency on pytest #125

Closed AlexanderWells-diamond closed 1 year ago

AlexanderWells-diamond commented 1 year ago

The pyproject.toml file has specific configuration for pytest, but did not include it as a dependency - it was only installed as a dependency of pytest-cov. This led to the scenario where, if for any reason you didn't want the coverage plugin and so uninstalled it, you would also lose the ability to run tests.

I did debate whether flake8 should also be listed - it does also have direct configuration but not directly depended on - but I think the wrapper project (flake8-isort) is a fair replacement as I'd expect that removing it that flake8 and isort would stop working properly.

All other modules references in the pyproject.toml file are already explicitly depended on.