Code cleanup

This commit is contained in:
Joel Collins 2020-10-14 14:56:29 +00:00
parent 2bfb988460
commit 994e83dbeb
46 changed files with 261 additions and 318 deletions

View file

@ -1,4 +1,5 @@
stages:
- analysis
- build
- deploy
@ -9,6 +10,45 @@ cache:
paths:
- node_modules/
pylint:
stage: analysis
image: python:3.7
allow_failure: true
before_script:
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
script:
# Install server
- $HOME/.poetry/bin/poetry install
# Run static build script
- $HOME/.poetry/bin/poetry run pylint ./openflexure_microscope/
only:
- branches
- merge_requests
- tags
- web
black:
stage: analysis
image: python:3.7
allow_failure: true
before_script:
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
script:
# Install server
- $HOME/.poetry/bin/poetry install
# Run static build script
- $HOME/.poetry/bin/poetry run black --check .
only:
- branches
- merge_requests
- tags
- web
# Electron app build
build: