Warn against importing symbols starting with underscore #15265
-
Hi All, I'm new to Ruff and was therefore hoping someone more skilled might help. I have scoured the docs and stack overflow, but no luck. I want a rule that Warns against importing symbols starting with underscore, is there one? EG in def _ex(): ... in from ex import _ex and I want a warning to say I shouldn't import Does anything like this exist? Thanks, Howard. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
plc2701
might be what you're looking for but it's a preview only rule for now (see preview mode)