A "format code" action has been added to the Python Console Editor which allows for the automated linting/ pretty printing of code in line with the capabilities of modern code editors.
Additional configuration settings for this action include:
The Formatter options allow for a selection between the autopep8 or black linting tools and provide the following additional options:
- Level (autopep8 only) See Autopep8 aggressiveness level
- Normalize quotes (black only): Replace all single quotes with double quotes if possible
Sorting operations are provided using isort, which will allow for sorting import statements in three different groups:
These operations will facilitate consistent development in line with industry best practices and improve code quality, consistency, readability, and operational efficiency (especially when coupled with version control systems).
This feature was developed by Yoann Quenach de Quivillic