Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move from pipenv to poetry - Remove unused_imports from mypy options - Upgrade 3.8
- Loading branch information
1 parent
41c4158
commit 9dd5932
Showing
10 changed files
with
64 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ jobs: | |
env: | ||
PYTHONPATH: ${PYTHONPATH}:${PWD}:src/ | ||
run: | | ||
pipenv run make run-tests | ||
pipenv run make tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
ARG PYTHON_VERSION=3.8.16 | ||
FROM python:$PYTHON_VERSION | ||
ARG PYTHON_VERSION=3.8.12 | ||
FROM python:$PYTHON_VERSION-slim | ||
|
||
ENV PYTHONPATH /app/src:/app/tests | ||
ENV PATH /root/.local/bin/:$PYENV_ROOT/bin/:$PATH | ||
ENV PATH /root/.local/bin:$PATH | ||
|
||
WORKDIR /app/ | ||
COPY . /app/ | ||
WORKDIR /app | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends curl \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip install --upgrade pip \ | ||
&& adduser -u 1000 --gecos "" --disabled-password fever \ | ||
&& chown -R fever:fever /app | ||
RUN pip install pipenv | ||
RUN pipenv install --dev --system | ||
&& chown -R fever:fever /app \ | ||
&& curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.2.0 python - \ | ||
&& poetry config virtualenvs.create false | ||
|
||
CMD ["python"] | ||
COPY . ./ | ||
|
||
RUN poetry install --no-root | ||
|
||
ENTRYPOINT ["poetry", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: "3.7" | ||
services: | ||
pypendency: | ||
container_name: "pypendency" | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- .:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters