Replies: 2 comments
-
Hey @laguill, A [project]
name = "project"
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "win-64", "osx-64", "osx-arm64"]
[feature.dev.dependencies]
ruff = "*"
mypy = "1.13"
[dependencies]
python = ">=3.12, <3.13"
matplotlib = "*"
numpy = "*"
[feature.test.dependencies]
pytest = "*"
[environments]
# Extend the default environment with multiple features
default = { features = [ "dev", "test", ], solve-group = "default" }
# Have only the default dependencies and the added test dependencies.
test = { features = ["test"], solve-group = "default" } Results in this
Note that for [project]
name = "project"
requires-python = ">=3.12, <3.13"
dependencies = ["matplotlib", "numpy"]
[dependency-groups]
dev = ["ruff", "mypy==1.13"]
test = ["pytest"]
[tool.pixi.project]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "win-64", "osx-64", "osx-arm64"]
[tool.pixi.environments]
# Extend the default environment with multiple features
default = { features = [ "dev", "test", ], solve-group = "default" }
# Have only the default dependencies and the added test dependencies.
test = { features = ["test"], solve-group = "default" } |
Beta Was this translation helpful? Give feedback.
0 replies
-
Something like that ? # create project folder
mkdir ~/Documents/01-Etudes/OpenClassrooms/P2_Analyser-donnees-systemes-educatifs
cd !$
pixi init --format pyproject
# add dependencies
pixi add python jupyterlab ipykernel pixi-kernel pandas
# dev dependencies
pixi add --feature dev mypy ruff
# or using dependency-groups
pixi add --dependency-groups.dev mypy ruff
# create default env for the project
pixi install
# activate project environment
pixi shell It is confusing to use feature or dependency-groups ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
How do you integrate ruff and mypy in your project ?
Do you create dev feature ?
For now I added ruff and mypy directly in my project
For sharing or collaboration I am not sure that the "correct " way ...
What do you suggest do you have some exemple ?
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions