Module implementing a dialog showing the Black code formatting progress and the results.
None |
BlackFormattingDialog | Class implementing a dialog showing the Black code formatting progress and the results. |
BlackMultiprocessingReport | Class extending the black Report to work with multiprocessing. |
BlackMultiprocessingResult | Class containing the reformatting result data. |
BlackReport | Class extending the black Report to work with our dialog. |
BlackStatistics | Class containing the reformatting statistic data. |
None |
Class implementing a dialog showing the Black code formatting progress and the results.
DataRole |
DataTypeRole |
FileNameColumn |
FileNameRole |
StatusColumn |
StatusRole |
None |
BlackFormattingDialog | 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. |
__formatButtonClicked | Private slot handling the selection of the 'Format Code' button. |
__formatManyFiles | Private method to format the list of files according the configuration using multiple processes in parallel. |
__formatOneFile | Private method to format the list of files according the configuration. |
__handleBlackFormattingResult | Private slot to handle the result of a black reformatting action. |
__performAction | Private method to execute the requested formatting 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. |
__updateStatistics | Private method to update the statistics about the recent formatting 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. |
__diffFormatFile | Static method to check, if the given files need to be reformatted, and generate a unified diff. |
formattingWorkerTask | 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 slot handling the selection of the 'Format Code' button.
Private method to format the list of files according the configuration using multiple processes in parallel.
Private method to format the list of files according the configuration.
Private slot to handle the result of a black reformatting action.
Private method to execute the requested formatting 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 method to update the statistics about the recent formatting 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 the given files need to be reformatted, and generate a unified diff.
Static method acting as the parallel worker for the formatting task.
Class extending the black Report to work with multiprocessing.
None |
None |
BlackMultiprocessingReport | Constructor |
done | Public method to handle the end of a reformat. |
failed | Public method to handle a reformat failure. |
path_ignored | Public method handling an ignored path. |
None |
Constructor
Public method to handle the end of a reformat.
Public method to handle a reformat failure.
Public method handling an ignored path.
Class containing the reformatting result data.
This class is used when reformatting multiple files in parallel using processes.
data |
filename |
status |
None |
None |
None |
Class extending the black Report to work with our dialog.
None |
None |
BlackReport | Constructor |
done | Public method to handle the end of a reformat. |
failed | Public method to handle a reformat failure. |
path_ignored | Public method handling an ignored path. |
None |
Constructor
Public method to handle the end of a reformat.
Public method to handle a reformat failure.
Public method handling an ignored path.
Class containing the reformatting statistic data.
changeCount |
failureCount |
ignoreCount |
processedCount |
sameCount |
None |
None |
None |