Hitting some issues with making a PR due to errors...
# general
f
Hitting some issues with making a PR due to errors building the code (thread). Is there a way to test Python-only contributions without building the rust part?
c
I've not tested this, but if you want to treat the Pants python sources as any other Python project and not the pants own source repo, you can flip this option in
pants.toml
locally (and provide the
pants_version
option as usual) to lint fmt and hopefully also test the Python sources:
Copy code
[DEFAULT]
# Tell `scie-pants` to use our `./pants` bootstrap script.
delegate_bootstrap = true
f
Thanks. Tried that but
pants fmt ::
then fails with this error:
Copy code
...pants/pants-plugins/pants_explorer/server/uvicorn.py", line 10, in <module>
    from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'
😒 1
Okay, just setting it up correctly to build rust, without nix, worked well now.
👍 1