This package warns in case the stack method is called.
import inspect
inspect.stack(*args) # should be a warning here
from inspect import stack
stack(*args) # should be a warning here
from inspect import stack as my_stack
my_stack(*args) # should be a warning here
def stack():
pass
stack() # should not be a warning here
import inspect as foo
foo.stack() # should be a warning here
from inspect import stack
foo = stack
foo() # should be a warning here
- Create a file called .pylintrc (in the root directory) and paste this,
[MASTER]
load-plugins=pylint_inspect_stack.inspect_stack_checker
- Install the package by running the following command,
pip install git+https://github.com/mujeeb91/pylint-inspect-stack.git
- Run pylint
pylint script.py