4882 self.blackCheckFormattingAct.setWhatsThis( |
4882 self.blackCheckFormattingAct.setWhatsThis( |
4883 self.tr( |
4883 self.tr( |
4884 "<b>Check Code Formatting</b>" |
4884 "<b>Check Code Formatting</b>" |
4885 "<p>This shows a dialog to enter parameters for the format check run" |
4885 "<p>This shows a dialog to enter parameters for the format check run" |
4886 " and performs a check, if the project sources need to be reformatted" |
4886 " and performs a check, if the project sources need to be reformatted" |
4887 " using Black'.</p>" |
4887 " using 'Black'.</p>" |
4888 ) |
4888 ) |
4889 ) |
4889 ) |
4890 self.blackCheckFormattingAct.triggered.connect( |
4890 self.blackCheckFormattingAct.triggered.connect( |
4891 lambda: self.__performFormatWithBlack(BlackFormattingAction.Check) |
4891 lambda: self.__performFormatWithBlack(BlackFormattingAction.Check) |
4892 ) |
4892 ) |
4909 self.blackDiffFormattingAct.setWhatsThis( |
4909 self.blackDiffFormattingAct.setWhatsThis( |
4910 self.tr( |
4910 self.tr( |
4911 "<b>Diff Code Formatting</b>" |
4911 "<b>Diff Code Formatting</b>" |
4912 "<p>This shows a dialog to enter parameters for the format diff run and" |
4912 "<p>This shows a dialog to enter parameters for the format diff run and" |
4913 " generates a unified diff of potential project source reformatting" |
4913 " generates a unified diff of potential project source reformatting" |
4914 " using Black'.</p>" |
4914 " using 'Black'.</p>" |
4915 ) |
4915 ) |
4916 ) |
4916 ) |
4917 self.blackDiffFormattingAct.triggered.connect( |
4917 self.blackDiffFormattingAct.triggered.connect( |
4918 lambda: self.__performFormatWithBlack(BlackFormattingAction.Diff) |
4918 lambda: self.__performFormatWithBlack(BlackFormattingAction.Diff) |
4919 ) |
4919 ) |