Replies: 1 comment
|
This is the same-package heuristic rather than Disable that heuristic and let the full-path [tool.ruff]
src = ["src"]
[tool.ruff.lint.isort]
detect-same-package = falseFor This avoids maintaining |
|
This is the same-package heuristic rather than Disable that heuristic and let the full-path [tool.ruff]
src = ["src"]
[tool.ruff.lint.isort]
detect-same-package = falseFor This avoids maintaining |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I have multiple python packages with the same first name, for example
company.package1,company.package2, etc.When in
company.package1Isort automatically flagscompany.package2import as a third party, while Ruff detects every package starting withcompanyas first party, changing the sort order.If I use the following configuration:
then
company.package2is correctly formatted as a third party package, but this is not scalable as I have many of these packages and I would need to configure every package differently and update every one with every new package created.I also tried setting
known-third-party = ["company.*"], but this makes all company imports as third party, even the first party ones.Is there some option to configure Ruff the way I need? Thank you.
All reactions