Python的pylint/pyflakes使用在什么场景下? 我的Pycharm能实时检测Python语法问题, 也算一种用?
PHP中文网
PHP中文网 2017-04-17 17:47:28
0
1
500

一. 描述问题&上下文环境

经常看到这几个工具的身影, 但是Pycharm貌似集成了它们, 它们起作用的时候, 就像后台默默运行的老伙计
自动实时为你检测错误, 比vim之类集成它们好像要好用点

不理解:

  1. 许多文章煞有介事的介绍它们(长篇大论)

  2. 弄成一个命令来使用, 这有点「手工化」

无意引战

二. 相关代码&重现

三. 报错信息

四. 相关截图

五. 已经尝试哪些方法仍然没有解决(附上相关链接)

自己理解:

  1. vim之类工具还是需要的

  2. 个人认为这类工具性质的包,就默默在后台奉献就好, 何故还要写那么多文章介绍, 或者去学习?

六.问题简化

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
左手右手慢动作

Your idea is very good. As an IDE, PyCharm’s standby lint function is very good, and it is also the most suitable way for users to use it. So why should you learn pylint or other similar tools? I understand it is mainly used in the following scenarios:

  1. Some users are not used to using heavier IDEs like PyCharm, so they look forward to lightweight solutions;

  2. Understand the principles of the lint tool and do some more in-depth use (I guess the lint tool integrated into PyCharm actually uses this lint command line tool, but it is encapsulated) ;

  3. Used in some automated processes, such as using git hook for code style verification, or CI. These scenarios that often need to be configured on the server prefer CLI tools.

  4. Learn more about the implementation of such tools.

In short, these tools do not need to be mastered by all developers. They are more often decided based on their role and needs in the project.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!