Skip to content

Commit 5de572d

Browse files
authored
Merge pull request #58 from europanite/feature/release
feature/release
2 parents 87df361 + 2fa3ac2 commit 5de572d

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
A standard **Python** environment built with **Docker Compose**.
1010

11-
!["console"](./assets/images/console.png)
12-
13-
!["jupyterlab"](./assets/images/jupyterlab.png)
11+
!["image"](./assets/images/image.png)
1412

1513
---
1614

@@ -49,7 +47,6 @@ export HOST_GID=$(id -g)
4947
docker compose build
5048
docker compose up -d
5149
docker compose exec service bash
52-
5350
```
5451

5552
### Windows
@@ -63,7 +60,6 @@ cd standard_python_environment
6360
docker compose build
6461
docker compose up -d
6562
docker compose exec service bash
66-
6763
```
6864

6965
Now you are inside the Python container 🎉
@@ -75,11 +71,19 @@ If you use JupyterLab, just you need to access http://localhost:8888
7571
### Test
7672

7773
```bash
74+
# pytest
75+
docker compose \
76+
-f docker-compose.test.yml run \
77+
--rm \
78+
--entrypoint /bin/sh service_test \
79+
-lc 'pytest'
80+
81+
# Lint
7882
docker compose \
7983
-f docker-compose.test.yml run \
80-
--rm --entrypoint \
81-
/bin/sh service_test -lc ' \
82-
pytest'
84+
--rm \
85+
--entrypoint /bin/sh service_test \
86+
-lc 'ruff check /app /tests'
8387
```
8488

8589
## License

assets/images/console.png

-28.8 KB
Binary file not shown.

assets/images/image.png

179 KB
Loading

assets/images/jupyterlab.png

-27.6 KB
Binary file not shown.

service/app/pytest.ini

Whitespace-only changes.

0 commit comments

Comments
 (0)