pythonpylint

How do I automatically fix lint issues reported by pylint?


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


Solution

  • Some of the formatting-errors reported by pylint can be fixed with autopep8, black, or the built-in formatting supported by PyCharm and other IDEs.