chore: add gitpod pre-commit task

environments/review-docs-pre-c-zs4ui8/deployments/15563
jo 2022-11-19 17:46:48 +01:00 zatwierdzone przez Marge Me
rodzic 753e9dcfd4
commit 070a039c53
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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