-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Python venv and monorepo #224
Comments
I have the same problem at work, the problem seems to be that What I did was an ugly hack where I have all my linters config file in the root, for example It's not ideal, I know, and I don't even know if it works in Windows actually. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use a monorepo for a project such as:
I am trying to configure
efm
to format python files (under/myproject/python_pkg
) usingblack
with{ formatCommand = "poetry run black --quiet -", formatStdin = true }
. This works on "normal" repos where thepyproject.toml
file is at the same level as.git
, but if I start nvim under/myproject
then I can't seem to find a way to make this work (becauseefm
seems to executepoetry
in/myproject
where it cannot find its config. Running withoutpoetry run
misses the project-level config, so it's not a solution either.I tried wrapping the
formatCommand
in a bit of lua that would detect the current filename and extract the path from it, but I'm too noob with lua to figure it out.Is there a way to handle this situation?
Also, thanks for a very nice little plugin :)
The text was updated successfully, but these errors were encountered: