问题
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