File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed
{{cookiecutter.project_slug}}
{{cookiecutter.package_name}} Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 11ARG BUILDPLATFORM=linux/amd64
22ARG BUILDTAG=3-alpine
33
4- FROM --platform=$BUILDPLATFORM python:$BUILDTAG as base_build
4+ FROM --platform=$BUILDPLATFORM python:$BUILDTAG as test
55
66WORKDIR /home/user/app
77
8- COPY {{cookiecutter.package_name}} {{cookiecutter.package_name}}
9- COPY tests tests
8+ ENV PATH=$PATH:/home/user/.local/bin
9+
10+ RUN pip install --no-cache poetry poethepoet
11+ RUN poetry config --no-cache
1012COPY pyproject.toml .
1113COPY poetry.lock .
12- COPY README.md .
14+ RUN poetry install --no-root
15+
1316COPY .pre-commit-config.yaml .
14- COPY .gitignore .
1517COPY .flake8 .
18+ COPY README.md .
19+ COPY features features
20+ COPY {{cookiecutter.package_name}} {{cookiecutter.package_name}}
21+ COPY tests tests
1622
17- ENV PATH=$PATH:/home/user/.local/bin
23+ RUN poetry install
1824
19- FROM base_build as test
25+ RUN poetry build --format=wheel
26+ RUN poetry export --only main -f requirements.txt --without-hashes --output requirements.txt
2027
2128ARG TESTBUILD=True
2229ENV TESTBUILD=$TESTBUILD
23-
24- RUN pip install --no-cache poetry poethepoet
25- RUN poetry config --no-cache
26- RUN poe install-dev
27- RUN poetry build --format=wheel
28- RUN poetry export --only main -f requirements.txt --without-hashes --output requirements.txt
2930RUN if [ "$TESTBUILD" = 'True' ]; then poe test; fi
3031
3132ENTRYPOINT ["poe" , "-q" ]
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ plugins:
1717theme :
1818 name : material
1919 palette :
20- - media : ' (prefers-color-scheme: dark )'
20+ - media : ' (prefers-color-scheme: light )'
2121 scheme : slate
2222 primary : blue
2323 accent : amber
2424 toggle :
2525 icon : material/lightbulb-outline
2626 name : Switch to light mode
27- - media : ' (prefers-color-scheme: light )'
27+ - media : ' (prefers-color-scheme: dark )'
2828 scheme : default
2929 primary : black
3030 accent : amber
4444
4545nav :
4646 - index.md
47- - ... | readme.md
48- - ... | scenarios/**/* .md
47+ - ... | glob= readme.md
48+ - ... | regex= scenarios/.+ .md
4949 - API : mkapi/api/{{cookiecutter.package_name}}
5050 - Tests : mkapi/tests/tests
5151
Original file line number Diff line number Diff line change 1- """{{cookiecutter.project_short_description}}"""
1+ """{{cookiecutter.project_short_description}}. """
You can’t perform that action at this time.
0 commit comments