|
1 | 1 | # Python Project Template  |
2 | 2 |
|
3 | | - |
4 | 3 | Baseline Python project template |
5 | 4 |
|
6 | 5 | ## Setup |
7 | 6 |
|
8 | 7 | Project supports local development and VSCode Dev container development |
9 | 8 |
|
10 | | -### Local development |
| 9 | +### Local Development Installation |
| 10 | + |
| 11 | +Note: Project uses `uv` and `just` to manage project configuration and commands |
11 | 12 |
|
12 | | -- Recommended |
13 | | - - Install [`pyenv`](https://github.com/pyenv/pyenv) |
14 | | - - Install current Python version: `pyenv install 3.14.2` |
15 | | - - Set global Python version: `pyenv global 3.14.2` |
16 | | - - Or Install with Homebrew |
17 | | - - Install python 3 `brew install python3` |
18 | | -- Initialize virtual environment: `python3 -m venv .venv` |
19 | | -- Activate: `source .venv/bin/activate` |
20 | | -- Install packages: `pip install -r requirements.txt` |
| 13 | +* Install dependencies via Homebrew - `brew bundle install` |
| 14 | +* Sync project - `just sync` |
21 | 15 |
|
22 | 16 | ### VS Code Dev Container |
23 | 17 |
|
24 | | -- Install Docker |
25 | | -- Install VSCode |
26 | | -- Open project folder in VS Code |
27 | | -- Install recommended extensions |
28 | | -- Reopen in container using Remote Development Container menu |
| 18 | +* Install Docker |
| 19 | +* Install VSCode |
| 20 | +* Open project folder in VS Code |
| 21 | +* Install recommended extensions |
| 22 | +* Reopen in container using Remote Development Container menu |
29 | 23 |
|
30 | 24 | ## Project Commands |
31 | 25 |
|
32 | | -- Local |
33 | | - - `just lint` - lint project files |
34 | | -- Dev container |
35 | | - - `just lint` - lint and stylecheck project files |
36 | | -- Run unit tests: `just test` |
| 26 | +* Local |
| 27 | + * `just lint` - lint project files |
| 28 | +* Dev container |
| 29 | + * `just lint` - lint and stylecheck project files |
| 30 | +* Run unit tests: `just test` |
| 31 | +* Install dependency: `uv add {package}` |
37 | 32 |
|
38 | 33 | ## Usage |
39 | 34 |
|
40 | | -- Usage Notes |
41 | | - |
42 | | -## Update Dependencies |
43 | | - |
44 | | -- Install dependency: `pip install {dependency}` |
45 | | -- Update requirements file: `pip freeze > requirements.txt` |
| 35 | +* Usage Notes |
0 commit comments