isort: adding namespace as known-first-party #10053
Unanswered
higorc-mck
asked this question in
Q&A
Replies: 1 comment
-
|
Maybe, for now, you should create a new group ? Then if it doesn't work neither it could give more clues on the issue. [tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "my_packages", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
"my_packages" = ["namespace1", "ns2", "ns3"]Then which command did you try, to see that it is not recognized ? Is this one work ? ruff --version
ruff check --select I --diff
# Then to apply changes to the files
ruff check --select I --fix |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a monorepo that holds many different namespace packages, almost all of them belonging to the same namespace. I can't get
ruffto recognize the namespace as first party, not through name matching nor path matching, as the documentation is a bit ambiguous:In my
pyproject.toml, I have tried the following:Matching the namespace name
Matching all paths for these packages
Neither option worked. Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions