chore: add gitpod pre-commit task
This commit is contained in:
parent
753e9dcfd4
commit
070a039c53
|
@ -46,8 +46,9 @@ tasks:
|
||||||
ENV_FILE: /workspace/funkwhale/.gitpod/.env
|
ENV_FILE: /workspace/funkwhale/.gitpod/.env
|
||||||
VUE_EDITOR: code
|
VUE_EDITOR: code
|
||||||
DJANGO_SETTINGS_MODULE: config.settings.local
|
DJANGO_SETTINGS_MODULE: config.settings.local
|
||||||
|
init: pre-commit install
|
||||||
command: |
|
command: |
|
||||||
clear
|
pre-commit run --all && clear
|
||||||
echo ""
|
echo ""
|
||||||
echo -e " ⠀⠀⠸⣿⣷⣦⣄⣠⣶⣾⣿⠇⠀⠀ You can now start developing Funkwhale with gitpod!"
|
echo -e " ⠀⠀⠸⣿⣷⣦⣄⣠⣶⣾⣿⠇⠀⠀ You can now start developing Funkwhale with gitpod!"
|
||||||
echo -e " ⠀⠀⠀⠈⠉⠻⣿⣿⠟⠉⠁⠀⠀⠀"
|
echo -e " ⠀⠀⠀⠈⠉⠻⣿⣿⠟⠉⠁⠀⠀⠀"
|
||||||
|
|
|
@ -4,6 +4,6 @@ USER gitpod
|
||||||
RUN sudo apt update -y \
|
RUN sudo apt update -y \
|
||||||
&& sudo apt install libsasl2-dev libldap2-dev libssl-dev ffmpeg gettext -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.create true \
|
||||||
&& poetry config virtualenvs.in-project true
|
&& poetry config virtualenvs.in-project true
|
||||||
|
|
Loading…
Reference in New Issue