-
Notifications
You must be signed in to change notification settings - Fork 51
pre-commit additional_dependencies pyjson5 does not work with Flox.dev (Nix) #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
…ble for renovate See python-jsonschema/check-jsonschema#528 re. enabling dependabot, and python-jsonschema/check-jsonschema#542 re. renovate.
…renovate See python-jsonschema/check-jsonschema#528 re. enabling dependabot, and python-jsonschema/check-jsonschema#542 re. renovate.
…renovate See python-jsonschema/check-jsonschema#528 re. enabling dependabot, and python-jsonschema/check-jsonschema#542 re. renovate.
…renovate See python-jsonschema/check-jsonschema#528 re. enabling dependabot, and python-jsonschema/check-jsonschema#542 re. renovate.
Your guesses seem right to me, that someone or something in your stack is isolating or otherwise manipulating the Python environment managed by pre-commit. additional_dependencies is supposed to be the mechanism for injecting extra packages into the environment. I wouldn't necessarily expect pre-commit to support other methods, but by your example it's not working correctly. I'll try to help look into this, but I think this is primarily a pre-commit/platform issue. |
I'm not sure if this is a problem in this project (https://github.com/python-jsonschema/check-jsonschema) or a more general https://github.com/pre-commit/pre-commit/issues related to https://pre-commit.com/#python (I'm a bit fuzzy on exactly what's what).
At this revision (but it's now about to change, so it will look different at
main
in a moment) I had this working, originally introduced in enola-dev/enola#960:when I was lauching pre-commit in a Python Virtual Environment using my "Linux Fedora System OS Python distro" - like this.
But during enola-dev/enola#1227 for enola-dev/enola#1231, I have (again) run into:
and (this time) I can't seem to reliably fix it. Even https://github.com/enola-dev/enola/pull/1233/files to depend on pyjson5 directly in
requirements.txt
instead of as anadditional_dependencies
in.pre-commit-config.yaml
did not seem to fix it.I wonder if something in how https://flox.dev/docs/cookbook/languages/python/ (or even Nix itself) isolates Python packages is incompatible with how this (https://github.com/python-jsonschema/check-jsonschema) or https://github.com/pre-commit/pre-commit manages such
additional_dependencies
.The text was updated successfully, but these errors were encountered: