V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
SeaRecluse
V2EX  ›  Python

SublimeText3 有么有检查未使用变量的插件

  •  
  •   SeaRecluse · 2019-02-28 16:12:59 +08:00 · 2418 次点击
    这是一个创建于 1855 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天一个 Flag 写成了 flag 愣是检查了一年😭

    7 条回复    2019-02-28 18:52:01 +08:00
    codeduan
        1
    codeduan  
       2019-02-28 16:26:32 +08:00
    写一套 eslint 配置啊,就可以 lint 出来
    codeduan
        2
    codeduan  
       2019-02-28 16:27:49 +08:00
    哦,是 Python,那也有 lint 工具。
    chenqh
        3
    chenqh  
       2019-02-28 16:27:49 +08:00 via Android
    flake8 能检查未使用变量
    SeaRecluse
        4
    SeaRecluse  
    OP
       2019-02-28 16:47:31 +08:00
    @codeduan 如果像 vs 一样以波浪线标出来就好了
    ww2000e
        5
    ww2000e  
       2019-02-28 16:53:20 +08:00
    python 的话装个 anaconda 就行了
    ww2000e
        6
    ww2000e  
       2019-02-28 16:59:36 +08:00   ❤️ 1
    sublime 插件 anaconda,不是那个 anaconda 包
    update
        7
    update  
       2019-02-28 18:52:01 +08:00
    搜索下 phpmd,st 有插件。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3223 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 12:01 · PVG 20:01 · LAX 05:01 · JFK 08:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.