--- a/src/eric7/CodeFormatting/BlackConfigurationDialog.py Tue Sep 20 17:23:57 2022 +0200 +++ b/src/eric7/CodeFormatting/BlackConfigurationDialog.py Tue Sep 20 18:33:03 2022 +0200 @@ -249,10 +249,13 @@ ), ) - def getConfiguration(self): + def getConfiguration(self, saveToProject=False): """ Public method to get the current configuration parameters. + @param saveToProject flag indicating to save the configuration data in the + project file (defaults to False) + @type bool (optional) @return dictionary containing the configuration parameters @rtype dict """ @@ -269,7 +272,7 @@ ] = self.skipMagicCommaCheckBox.isChecked() configuration["extend-exclude"] = self.excludeEdit.toPlainText().strip() - if self.__project: + if saveToProject and self.__project: self.__project.setData("OTHERTOOLSPARMS", "Black", configuration) return configuration