sublime 中设置pylint
2024-08-29 13:23:40
http://www.360doc.com/content/14/1110/11/15077656_424004081.shtml
安装 pylinter 插件
详见 sublime 插件安装
配置
{
// When versbose is 'true', various messages will be written to the console.
// values: true or false
"verbose": true,
// The full path to the Python executable you want to
// run Pylint with or simply use 'python'.
"python_bin": "python",
// The following paths will be added Pylint's Python path
"python_path": [ ],
// Optionally set the working directory
"working_dir": null,
// Full path to the lint.py module in the pylint package
"pylint_path": "D:/Python27/Lib/pylint-1.6.4/pylint/lint.py",
// Optional full path to a Pylint configuration file
"pylint_rc": null,
// Set to true to automtically run Pylint on save
"run_on_save": true,
// Set to true to use graphical error icons
"use_icons": true,
"disable_outline": false,
// Status messages stay as long as cursor is on an error line
"message_stay": true,
// Ignore Pylint error types. Possible values:
// "R" : Refactor for a "good practice" metric violation
// "C" : Convention for coding standard violation
// "W" : Warning for stylistic problems, or minor programming issues
// "E" : Error for important programming issues (i.e. most probably bug)
// "F" : Fatal for errors which prevented further processing
"ignore": [],
// a list of strings of individual errors to disable, ex: ["C0301"]
"disable": [],
"plugins": []
}
安装 sublimeLinter 插件
配置
{
"default": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"python django": "python",
"pythonimproved": "python",
"magicpython": "python",
"html 5": "html",
"html (django)": "html",
"html (rails)": "html",
"javascript (babel)": "javascript",
"php": "html"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
使用:
利用sublime 打开python,ctrl+s 保存时,在源码区显示pylint内容
修改后,再次保存,即可完成
前提是已经安装好python及pylint。如果pylint无法使用,需要安装其他的module,可以通过pip进行安装。
消去显示区域中的outline
设置pylinter 插件的配置, disable_outline 为 true,即能够去掉。
"disable_outline": true,
sublimeCodeIntel 插件
Sublime Text 3安装sublimeCodeIntel插件和使用
按住alt+鼠标左键点击自己定义的任意函数,即可实现跳转。
http://blog.sina.com.cn/s/blog_61bd52310102w3if.html
最新文章
- OpenCascade B-Spline Basis Function
- 示例开发过程记录:meteor,react,apollo
- 理解 OpenStack Swift (2):架构、原理及功能 [Architecture, Implementation and Features]
- Windows 10的TPM模块到底是不是美国全球监控体系的奠基石?
- [家里蹲大学数学杂志]第041期中山大学数计学院 2008 级数学与应用数学专业《泛函分析》期末考试试题 A
- URL、表单数据、IP等处理类
- Python查看函数代码内容
- PCL—低层次视觉—点云分割(基于形态学)
- MEF只导出类的成员
- 一个HTTP Basic Authentication引发的异常
- 巧用Dictionary<;TKey,TValue>;,完成客户需求
- java中匿名内部类的应用
- js-面试题-驼峰命名
- Python-正则表达式总结版
- SoapUI&#160;访问代理设置
- 手动获取被spring管理的bean对象工具
- MariaDB 主从同步与热备(14)
- ubuntn中root密码设置和权限给予
- [转]expect实现ssh自动交互
- 怎样取消老毛桃软件赞助商---只需在输入框中输入老毛桃官网网址“laomaotao.org”