Is your feature request related to a problem? Please describe.
I work in python projects that use poetry for dependency management, and use a src/ folder for the repository. When importing an anything from within the repo, rope defaults to importing relative to the root directory, instead of from the package source.
e.g.
Describe the solution you'd like
I'd like to be able to set a configuration for rope (eg in pytool.toml) to tell Rope to not reference the src in the import, and instead just use the repo name.
e.g.
Describe alternatives you've considered
See discussion in pylsp: python-lsp/python-lsp-server#525
I've experimented with changing the existing config of python_files and source_folders, but this hasn't given much success.
Additional context
I use rope as part of pylsp.
Is your feature request related to a problem? Please describe.
I work in python projects that use poetry for dependency management, and use a
src/folder for the repository. When importing an anything from within the repo, rope defaults to importing relative to the root directory, instead of from the package source.e.g.
Describe the solution you'd like
I'd like to be able to set a configuration for rope (eg in
pytool.toml) to tell Rope to not reference thesrcin the import, and instead just use the repo name.e.g.
Describe alternatives you've considered
See discussion in pylsp: python-lsp/python-lsp-server#525
I've experimented with changing the existing config of
python_filesandsource_folders, but this hasn't given much success.Additional context
I use rope as part of pylsp.