yapf · PyPI
https://pypi.org/project/yapf25.12.2021 · Most of the current formatters for Python — e.g., autopep8, and pep8ify — are made to remove lint errors from code. This has some obvious limitations. For instance, code that conforms to the PEP 8 guidelines may not be reformatted. But it doesn’t mean that the code looks good. YAPF takes a different approach.
python 代码格式化工具:autopep8 - 微微微笑 - 博客园
https://www.cnblogs.com/miniren/p/5075697.htmlE502 -Remove extraneous escape of newline. E701 - Put colon-separated compound statement on separate lines. E70 - Put semicolon-separated compound statement on separate lines. E711 -Fix comparison with None. E712 -Fix comparison with boolean. E721 - Use " isinstance() " instead of comparing types directly. W291 -Remove trailing whitespace. W293 ...