diff --git a/.gitpod.yml b/.gitpod.yml index f06e4dc6a..ddc67c6a2 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -46,8 +46,9 @@ tasks: ENV_FILE: /workspace/funkwhale/.gitpod/.env VUE_EDITOR: code DJANGO_SETTINGS_MODULE: config.settings.local + init: pre-commit install command: | - clear + pre-commit run --all && clear echo "" echo -e " ⠀⠀⠸⣿⣷⣦⣄⣠⣶⣾⣿⠇⠀⠀ You can now start developing Funkwhale with gitpod!" echo -e " ⠀⠀⠀⠈⠉⠻⣿⣿⠟⠉⠁⠀⠀⠀" diff --git a/.gitpod/Dockerfile b/.gitpod/Dockerfile index 76d531f55..f72e213e0 100644 --- a/.gitpod/Dockerfile +++ b/.gitpod/Dockerfile @@ -4,6 +4,6 @@ USER gitpod RUN sudo apt update -y \ && sudo apt install libsasl2-dev libldap2-dev libssl-dev ffmpeg gettext -y -RUN pip install poetry \ +RUN pip install poetry pre-commit \ && poetry config virtualenvs.create true \ && poetry config virtualenvs.in-project true