Install python linters

This commit is contained in:
bom 2023-07-07 14:29:30 +02:00
parent d9f3169708
commit 97109f01ab

View file

@ -13,6 +13,7 @@ fun Prov.provisionPython(venvHome: String? = "~/.venv/meissa") = task {
installPybuilder(venvHome)
installRestClient(venvHome)
installJupyterlab(venvHome)
installLinters(venvHome)
}
fun Prov.installPython3(): ProvResult = task {
@ -41,6 +42,9 @@ fun Prov.installJupyterlab(venvHome: String? = null): ProvResult = task {
pipInstall("jupyterlab pandas matplotlib", venvHome)
}
fun Prov.installLinters(venvHome: String? = null): ProvResult = task {
pipInstall("flake8 mypy pylint", venvHome)
}
private fun Prov.pipInstall(pkg: String, venvHome: String? = null) {
cmd(activateVenvCommandPrefix(venvHome) + "pip3 install $pkg")