Replace pre-commit with installed via pip

This commit is contained in:
Marcin Woźniak 2024-12-29 00:48:58 +01:00
parent 9919ecd678
commit 64f8d33ba2
Signed by: y0rune
GPG Key ID: F204C385F57EB348
2 changed files with 6 additions and 4 deletions

View File

@ -425,6 +425,11 @@ function install_taplo() {
$install taplo $install taplo
} }
function install_precommit(){
# Install pre-commit
$pip install pre-commit $PIPEXTPRE
}
function main() { function main() {
command_start update_pip command_start update_pip
command_start install_neovim_module_for_python command_start install_neovim_module_for_python
@ -458,6 +463,7 @@ function main() {
command_start install_rust command_start install_rust
command_start install_tss_client command_start install_tss_client
command_start install_taplo command_start install_taplo
command_start install_precommit
command_start update command_start update
} }

View File

@ -1,4 +0,0 @@
#!/bin/bash
TAG=v1.77.0
docker pull --platform linux/amd64 ghcr.io/antonbabenko/pre-commit-terraform:$TAG
docker run --platform linux/amd64 -e "USERID=$(id -u):$(id -g)" -v "$(pwd)":/lint -w /lint ghcr.io/antonbabenko/pre-commit-terraform:$TAG run -a