You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add photography layout and post filtering functionality
- Created a new photography index page to showcase travel and street photographs.
- Implemented a new layout for photography posts, filtering them based on categories and tags.
- Added a PostCard component to display individual photography posts with metadata.
- Updated the blog layout to filter and display blog posts based on the 'blogs' category.
I've tried several Python package managers (pip, conda, Poetry). While trying Pixi, I found its features particularly useful for production setups.
13
+
14
+
In `pyproject.toml` you can define dependency groups for different environments (dev, test, prod). When installing, specify the environment so only the required dependencies are installed.
15
+
16
+
This helps keep production environments clean by excluding unnecessary packages.
17
+
18
+
You can also define reusable tasks and run them with `pixi run <task-name>`. This is a convenient way to run common commands defined in `pyproject.toml`.
19
+
20
+
## How to use Pixi for running a task
21
+
pixi.toml
22
+
23
+
```toml
24
+
[tasks]
25
+
# Format code (black)
26
+
format = "black src/"
27
+
# Lint (ruff)
28
+
lint = "ruff src/ --fix"
29
+
```
30
+
31
+
Quick add commands:
32
+
33
+
```
34
+
pixi task add format "black src/"
35
+
pixi task add lint "ruff src/ --fix"
36
+
```
37
+
38
+
Notes:
39
+
40
+
- Run a single task: `pixi run <task-name>`
41
+
- Make tasks depend on each other if needed (e.g., run format before lint)
0 commit comments