File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS base
22
3- COPY pyproject.toml uv.lock ./mpt_tool/
3+ COPY pyproject.toml uv.lock README.md ./mpt_tool/
44
55WORKDIR /mpt_tool
66
@@ -11,10 +11,10 @@ ENV PATH=/opt/venv/bin:$PATH
1111
1212FROM base AS build
1313
14- COPY . .
15-
1614RUN uv sync --frozen --no-cache --all-groups --active
1715
16+ COPY . .
17+
1818FROM build AS dev
1919
2020CMD ["bash" ]
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Common development workflows are wrapped in the `makefile`:
2424- ` make bash ` – start the app container and open a bash shell
2525- ` make build ` – build the application image for development
2626- ` make check ` – run code quality checks (ruff, flake8, lockfile check)
27- - ` make check-all ` – run checks, formatting, and tests
27+ - ` make check-all ` – run checks and tests
2828- ` make format ` – apply formatting and import fixes
2929- ` make down ` – stop and remove containers
3030- ` make review ` – check the code in the cli by running CodeRabbit
Original file line number Diff line number Diff line change 11services :
22 app :
3- container_name : mpt_tool
43 build :
54 context : .
65 target : dev
Original file line number Diff line number Diff line change 77 @echo " make bash - Open a bash shell in the app container."
88 @echo " make build - Build images."
99 @echo " make check - Check code quality with ruff."
10- @echo " make check-all - Run check and tests."
10+ @echo " make check-all - Run checks and tests."
1111 @echo " make down - Stop and remove containers."
1212 @echo " make format - Format code."
1313 @echo " make review - Check the code in the cli by running CodeRabbit."
4141 $(DC ) run --rm -it app bash -c " mpt-tool --help && exec bash"
4242
4343test :
44- $(DC ) run --rm app pytest $(args ) .
44+ $(DC ) run --rm app pytest $(if $( args ), $( args ) ,.)
You can’t perform that action at this time.
0 commit comments