diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4058e6c4543a23e3f9b90a1084dde0245a29e022..7e7b9e4e06b341dec5c2a1f1c29b69718f8afc19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,15 +75,6 @@ install: #### #### ####################################################################################################################################### -# format: -# stage: test -# before_script: -# - source ./venv/bin/activate -# - pip install autopep8 -# script: -# - autopep8 --in-place --recursive ./backend - - lint: stage: test allow_failure: false @@ -105,23 +96,12 @@ test: DB_HOST: mysql DB_PORT: 3306 WEB_ROOT: http://localhost:3000 - # SECRET_KEY: $SECRET_KEY - # TEST: "TRUE" - # STATIC_ROOT: "./" - # DJANGO_DEBUG: "FALSE" - # ALLOWED_HOSTS: "" - # DB_ENGINE: $ENGINE - # DB_NAME: $POSTGRES_DB - # DB_USER: $POSTGRES_USER - # DB_PASSWORD: $POSTGRES_PASSWORD - # DB_HOST: $POSTGRES_DB_HOST - # DB_PORT: 5432 before_script: - source ./venv/bin/activate script: - cd ./backend - python -m uvicorn main:app --port=80 --host 0.0.0.0 - - curl "http://localhost/api/health" + coverage: '/Code coverage: "Application startup complete."' ####################################################################################################################################### #### #### diff --git a/README.md b/README.md index f2576004bc7aea7f8e00db4263fd1a80ae0fcce4..e89bd40513892eb1082a9c8e5f19f9509750af12 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ Navigate to [http://localhost:3001](http://localhost:3001) ### *Le linter* So the new commits can be deployed, you'll need to use the linter from backend : `pycodestyle --config=./setup.cnf --exclude=./env ./` +You can use autoformat with autopep8 running : +`autopep8 --in-place --global-config=./setup.cnf --recursive --exclude=./env --aggressive ./` <br/>