38 lines
624 B
Markdown
38 lines
624 B
Markdown
# Materia Environment Setup
|
|
|
|
We use `uv` as our Python package manager for faster, more reliable dependency management.
|
|
https://docs.astral.sh/uv/
|
|
|
|
We recommend using vscode as your IDE.
|
|
https://code.visualstudio.com/
|
|
|
|
### 1. Install UV
|
|
|
|
```bash
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
```
|
|
|
|
### 2. Setup the env
|
|
Simply run:
|
|
|
|
```bash
|
|
uv sync
|
|
```
|
|
This will install python & the dependencies declared so far
|
|
|
|
### 3. Setup pre-commit
|
|
```bash
|
|
pre-commit install
|
|
```
|
|
|
|
### 4. Adding a dependency
|
|
|
|
```bash
|
|
uv add requests
|
|
```
|
|
|
|
# Managing a project with uv
|
|
|
|
https://docs.astral.sh/uv/guides/projects/#managing-dependencies
|
|
|