Ban specific functions, similar to flake8-tidy-imports (TID) #9236
billy-doyle
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Working on a codebase with some use of
globals()
andlocals()
(with no reason to have those used). Was wondering if there was any way to ban specific function use in ruff, similar to how https://github.com/tripcher/flake8-forbidden-func works.As an example, tidy imports does the following in the toml:
To ban specific built-ins (or really any function from any package), would propose something like:
Beta Was this translation helpful? Give feedback.
All reactions