Replies: 1 comment 2 replies
-
No, I don't think it can. If I understand the problem correctly, it would need multi-file analysis and better type inference to determine modules from other objects. Ruff can't do that yet (#3893, #7447). You might be able to use [tool.ruff.lint.flake8-import-conventions]
banned-from = ["functools"] to your pyproject.toml file. This should report on |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Can Ruff be used to format code in alignment with the guidelines outlined in https://google.github.io/styleguide/pyguide.html#22-imports?
For instance:
Beta Was this translation helpful? Give feedback.
All reactions