Add CI with lint & unit tests
This brings CI checks on every commit (merge requests & master):
-
pre-commitusual checks and linting using black -
toxto run your unit tests (using pytest for execution)
I made a few changes:
- I disabled the formatter around the tests payload that had a nicer structure without
blackformatting (in#fmt: off/onblocks) - I removed the pandas dependency as it was unused (reported by flake8 & isort)
- I updated the
.biopaths in the unit tests, prefixing them withtests/astoxruns from the root of the project - I moved the
pytestdependency totox.ini(it's more a convention than anything)
Edited by Bastien Abadie