
As a newer project, Spyglass is still a work in progress in terms of its styling. This change is meant to help improve readability and compliance of Spyglass source code. To match other Airship projects, this change implements YAPF into tox so linting is automatically ran. This will hopefully keep formatting grey areas styled consistently. PEP-8: https://www.python.org/dev/peps/pep-0008/ OpenStack Style Guidelines: https://docs.openstack.org/hacking/latest/user/hacking.html PEP Index: https://www.python.org/dev/peps/ Depends on https://review.openstack.org/#/c/648764. Change-Id: I45b19cc8a7932fd7823dcb69f64a0a1bf19fc434
14 lines
292 B
Docker
14 lines
292 B
Docker
ARG FROM=python:3.6
|
|
FROM ${FROM}
|
|
|
|
VOLUME /var/spyglass
|
|
WORKDIR /var/spyglass
|
|
|
|
ARG ctx_base=./
|
|
|
|
COPY ${ctx_base}/requirements.txt /opt/spyglass/requirements.txt
|
|
RUN pip3 install --no-cache-dir -r /opt/spyglass/requirements.txt
|
|
|
|
COPY ${ctx_base} /opt/spyglass
|
|
RUN pip3 install -e /opt/spyglass
|