CI integration (--check option)
AleksandrLiadov opened this issue · 2 comments
AleksandrLiadov commented
Could we have an option for CI?
Example: deptry --check .
If it has done already, where I can find an example of CI integration?
fpgmaas commented
Hi @AleksandrLiadov, Thanks for considering to add it into your CI pipeline!
This should be simply
deptry .
It will return exit code 1
if issues are found, and exit code 0
if no errors are found.
This repository and https://github.com/lisphilar/covid19-sir both contain examples of CI integration. In this repository, you can find it in the Makefile which is called in the Github workflows.
Does this answer your question? I realise this is not specified in the documentation, I will see how to incorporate this information there.
AleksandrLiadov commented
Yes thank you, I will test with Gitlab CI!