Skip to content

Commit 05a55c3

Browse files
committed
Docs
1 parent 7e73248 commit 05a55c3

File tree

5 files changed

+78
-2
lines changed

5 files changed

+78
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ ENV UV_LINK_MODE=copy \
1616
## Install package
1717
WORKDIR /app
1818
ADD pyproject.toml uv.lock /app/
19-
RUN uv sync --no-dev --locked --no-install-package sligro
19+
RUN uv sync --no-dev --locked --no-install-package example_project
2020
ADD src /app
2121
RUN uv sync --no-dev --locked --no-editable

README.md

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,77 @@
1-
# python-project-setup-with-uv
1+
# python-uv-devcontainer
2+
3+
Python project setup using a [Devcontainer](https://containers.dev) and [uv](https://github.com/astral-sh/uv).
4+
5+
## Setup
6+
7+
1. Clone this repo
8+
9+
![alt text](<docs/Screenshot 2025-04-23 at 17.19.10.png>)
10+
2. Reopen in Container
11+
12+
<small>Click the button in the popup upon opening the repo:</small>
13+
14+
![alt text](<docs/Screenshot 2025-04-23 at 17.20.22.png>)
15+
16+
Alternatively, enter <kbd>Ctrl+Shift+P</kbd> and select **Dev Containers: Reopen in Container**.
17+
18+
3. Enjoy a fully configured Python development environment with uv!
19+
20+
![alt text](<docs/Screenshot 2025-04-23 at 17.23.46.png>)
21+
22+
🎉
23+
24+
## Features
25+
26+
- **pytest**
27+
28+
Run tests with pytest.
29+
30+
```
31+
pytest tests
32+
```
33+
34+
- **uv**
35+
36+
Dependency management and virtual environment management with uv.
37+
38+
```
39+
uv add pandas
40+
```
41+
42+
- **ruff**
43+
44+
Linting and formatting with ruff.
45+
46+
**Linting:**
47+
48+
```
49+
ruff check .
50+
```
51+
52+
**Formatting:**
53+
54+
```
55+
ruff format .
56+
```
57+
58+
- **CI/CD**
59+
60+
CI/CD with GitHub Actions.
61+
62+
- **Linting**: Linting with ruff.
63+
- **Formatting**: Formatting with ruff.
64+
- **Testing**: Testing with pytest.
65+
- **Dependency management**: Dependency management with uv.
66+
67+
- **Docker**
68+
69+
Build and run your Python project in a Docker container.
70+
71+
```
72+
docker build -t my-python-app .
73+
```
74+
75+
## About
76+
77+
Provided to you with ♡ by [Jeroen Overschie](https://jeroenoverschie.nl/).
88.1 KB
Loading
859 KB
Loading
781 KB
Loading

0 commit comments

Comments
 (0)