Skip to content

autoimport suggests ".direnv.python-3.11.3.lib.python3.11.site-packages..." #391

Description

@voidus

As it says in the title.

I'm using direnv with it's layout python to create a python virtual environment at .direnv/python-<version>.
After that, I'm using poetry to install my dependencies and my package into the virtual environment.

I am pretty sure that the inclusion of "" in sys.path triggers this behaviour. I am also provided the same suggestions under module.thing and src.module.thing.

I understand that having the current directory on the include path is expected, but this is very annoying, and a lot of libraries use a src layout and should thus suffer from this, right?
Or do I have something misconfigured?

For context:

  • I have python installed through a nix devshell
  • "Propert" poetry project with `packages = [ { include = "pkg", from = "src" }]
  • python-lsp-server and plugins installed via [tool.poetry.group.dev.dependencies]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions