Module implementing a dialog to enter the parameters for a Black formatting run.
None |
BlackConfigurationDialog | Class implementing a dialog to enter the parameters for a Black formatting run. |
None |
Class implementing a dialog to enter the parameters for a Black formatting run.
None |
None |
BlackConfigurationDialog | Constructor |
__createTomlSnippet | Private slot to generate a TOML snippet of the current configuration. |
__getTargetList | Private method to get the list of checked target versions. |
__loadConfiguration | Private method to load the configuration section with data of the given dictionary. |
__populateTargetVersionsList | Private method to populate the target versions list widget with checkable Python version entries. |
getConfiguration | Public method to get the current configuration parameters. |
on_excludeEdit_textChanged | Private slot to enable the validate button depending on the exclude text. |
on_sourceComboBox_currentTextChanged | Private slot to handle the selection of a configuration source. |
on_validateButton_clicked | Private slot to validate the entered exclusion regular expression. |
None |
Constructor
Private slot to generate a TOML snippet of the current configuration.
Note: Only non-default values are included in this snippet.
The code snippet is copied to the clipboard and may be placed inside the 'pyproject.toml' file.
Private method to get the list of checked target versions.
Private method to load the configuration section with data of the given dictionary.
Private method to populate the target versions list widget with checkable Python version entries.
Public method to get the current configuration parameters.
Private slot to enable the validate button depending on the exclude text.
Private slot to handle the selection of a configuration source.
Private slot to validate the entered exclusion regular expression.