I have development dependencies specified in a dependency group in pyproject.toml. I use maturin develop to install these dev dependencies.
# pyproject.toml
[dependency-groups]
dev = ["black~=26.5", "isort~=8.0"]
In CI, I have a workflow that runs black and isort on my project. The workflow works like this:
- Checkout repository
- Install Rust
- Install Python
- Run
maturin develop
- Run
black and isort
Right now, the maturin develop step is taking a significant portion of CI time because it has to compile the Rust crate. black and isort don't need the Rust crate compiled, however, because they only inspect Python files.
It would be really nice if there was a way for Maturin to install dependency groups without compiling the Rust crate. I was thinking something like maturin develop --no-compile, although I do not have a strong preference on the naming!
Thanks! :)
I have development dependencies specified in a dependency group in
pyproject.toml. I usematurin developto install these dev dependencies.In CI, I have a workflow that runs
blackandisorton my project. The workflow works like this:maturin developblackandisortRight now, the
maturin developstep is taking a significant portion of CI time because it has to compile the Rust crate.blackandisortdon't need the Rust crate compiled, however, because they only inspect Python files.It would be really nice if there was a way for Maturin to install dependency groups without compiling the Rust crate. I was thinking something like
maturin develop --no-compile, although I do not have a strong preference on the naming!Thanks! :)