-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathEarthfile
More file actions
65 lines (56 loc) · 1.59 KB
/
Earthfile
File metadata and controls
65 lines (56 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
VERSION 0.6
FROM alpine
# renovate: datasource=docker depName=python versioning=docker
ARG PYTHON_VERSION=3.14
python-requirements:
FROM python:$PYTHON_VERSION
WORKDIR /usr/src/app
COPY requirements.txt .
COPY setup.cfg .
COPY setup.py .
RUN pip install --no-cache-dir -r requirements.txt
python-dev-requirements:
FROM +python-requirements
WORKDIR /usr/src/app
COPY requirements-dev.txt .
RUN pip install --no-cache-dir -r requirements-dev.txt
black-validate:
FROM +python-dev-requirements
WORKDIR /usr/src/app
COPY --dir scripts .
COPY --dir siobrultech_protocols .
COPY --dir tests .
RUN black . --check --diff --color
pyright-image:
FROM +python-dev-requirements
RUN nodeenv /.cache/nodeenv
ENV PYRIGHT_PYTHON_ENV_DIR=/.cache/nodeenv
WORKDIR /usr/src/app
pyright-validate:
FROM +pyright-image
WORKDIR /usr/src/app
COPY pyproject.toml .
COPY --dir scripts .
COPY --dir siobrultech_protocols .
COPY --dir tests .
RUN pyright
renovate-validate:
# renovate: datasource=docker depName=renovate/renovate versioning=docker
ARG RENOVATE_VERSION=38
FROM renovate/renovate:$RENOVATE_VERSION
WORKDIR /usr/src/app
COPY renovate.json .
RUN renovate-config-validator
ruff-validate:
FROM +python-dev-requirements
WORKDIR /usr/src/app
COPY pyproject.toml .
COPY --dir scripts .
COPY --dir siobrultech_protocols .
COPY --dir tests .
RUN ruff check . --diff
lint:
BUILD +black-validate
BUILD +pyright-validate
BUILD +renovate-validate
BUILD +ruff-validate