是否有一个 sublime 包来突出显示 Python 未使用的模块
Is there a sublime package to highlight unused modules for Python
我在 Sublime Text 3 中有我的 Python 代码,我想知道如果我没有使用某个模块(比如 Pycharm 做)。例如:
import math
import numpy as np # this has to be highlighted cause
# I'm not using numpy, just math
print(math.pi)
您可以使用 SublimeLinter with pycodestyle or SublimePythonIDE。它们都有一个内置的 linter。
我在 Sublime Text 3 中有我的 Python 代码,我想知道如果我没有使用某个模块(比如 Pycharm 做)。例如:
import math
import numpy as np # this has to be highlighted cause
# I'm not using numpy, just math
print(math.pi)
您可以使用 SublimeLinter with pycodestyle or SublimePythonIDE。它们都有一个内置的 linter。