How do I automatically fix lint issues reported by pylint?

微笑、不失礼 提交于 2019-12-23 14:51:47

问题


Just like we have "eslint --fix" to automatically fix lint problems in Javascript code, do we have something for pylint too for Python code?


回答1:


Few of the error codes reported by pylint can be fixed with below lib https://github.com/hhatto/autopep8

additionally if you are using pycharm as editor it is having option to reformat-code which will help to solve most of the issues reported by pylint



来源:https://stackoverflow.com/questions/54586757/how-do-i-automatically-fix-lint-issues-reported-by-pylint

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!