Module implementing a dialog showing the isort code formatting progress and the results.
None |
IsortFormattingDialog | Class implementing a dialog showing the isort code formatting progress and the results. |
IsortResult | Class containing the isort result data. |
IsortStatistics | Class containing the isort statistic data. |
None |
Class implementing a dialog showing the isort code formatting progress and the results.
DataRole |
DataTypeRole |
FileNameColumn |
FileNameRole |
StatusColumn |
StatusRole |
None |
IsortFormattingDialog | Constructor |
__filterFiles | Private method to filter the given list of files according the configuration parameters. |
__finish | Private method to perform some actions after the run was performed or canceled. |
__handleIsortResult | Private method to handle an isort sorting result. |
__performAction | Private method to execute the requested sorting action. |
__populateStatusFilterCombo | Private method to populate the status filter combo box with allowed selections. |
__resizeColumns | Private method to resize the columns of the result list. |
__resort | Private method to resort the result list. |
__sortImportsButtonClicked | Private slot handling the selection of the 'Sort Imports' button. |
__sortManyFiles | Private method to sort imports of the list of files according the configuration using multiple processes in parallel. |
__sortOneFile | Private method to sort the imports of the list of files according the configuration. |
__updateStatistics | Private method to update the statistics about the recent sorting run and make them visible. |
closeEvent | Protected slot implementing a close event handler. |
on_buttonBox_clicked | Private slot to handle button presses of the dialog buttons. |
on_resultsList_itemDoubleClicked | Private slot handling a double click of a result item. |
on_statusFilterComboBox_currentTextChanged | Private slot handling the selection of a status for items to be shown. |
__isortCheckFile | Static method to check, if a file's import statements need to be changed. |
__isortSortFile | Static method to sort the import statements of a file. |
sortingWorkerTask | Static method acting as the parallel worker for the formatting task. |
Constructor
Private method to filter the given list of files according the configuration parameters.
Private method to perform some actions after the run was performed or canceled.
Private method to handle an isort sorting result.
Private method to execute the requested sorting action.
Private method to populate the status filter combo box with allowed selections.
Private method to resize the columns of the result list.
Private method to resort the result list.
Private slot handling the selection of the 'Sort Imports' button.
Private method to sort imports of the list of files according the configuration using multiple processes in parallel.
Private method to sort the imports of the list of files according the configuration.
Private method to update the statistics about the recent sorting run and make them visible.
Protected slot implementing a close event handler.
Private slot to handle button presses of the dialog buttons.
Private slot handling a double click of a result item.
Private slot handling the selection of a status for items to be shown.
Static method to check, if a file's import statements need to be changed.
Static method to sort the import statements of a file.
Static method acting as the parallel worker for the formatting task.
Class containing the isort result data.
data |
filename |
status |
None |
None |
None |
Class containing the isort statistic data.
changeCount |
failureCount |
processedCount |
sameCount |
skippedCount |
None |
None |
None |