chore: add gitpod pre-commit task

This commit is contained in:
jo 2022-11-19 17:46:48 +01:00 committed by Marge Me
parent 753e9dcfd4
commit 070a039c53
2 changed files with 3 additions and 2 deletions

View File

@ -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 " ⠀⠀⠀⠈⠉⠻⣿⣿⠟⠉⠁⠀⠀⠀"

View File

@ -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