14 |
14 |
15 from dataclasses import dataclass |
15 from dataclasses import dataclass |
16 |
16 |
17 import black |
17 import black |
18 |
18 |
19 from PyQt6.QtCore import pyqtSignal, pyqtSlot, Qt, QCoreApplication, QObject |
19 from PyQt6.QtCore import QCoreApplication, QObject, Qt, pyqtSignal, pyqtSlot |
20 from PyQt6.QtWidgets import ( |
20 from PyQt6.QtWidgets import ( |
21 QAbstractButton, |
21 QAbstractButton, |
22 QDialog, |
22 QDialog, |
23 QDialogButtonBox, |
23 QDialogButtonBox, |
24 QHeaderView, |
24 QHeaderView, |
25 QTreeWidgetItem, |
25 QTreeWidgetItem, |
26 ) |
26 ) |
27 |
27 |
|
28 from eric7 import Preferences, Utilities |
28 from eric7.EricWidgets import EricMessageBox |
29 from eric7.EricWidgets import EricMessageBox |
29 |
30 |
|
31 from . import BlackUtilities |
|
32 from .BlackFormattingAction import BlackFormattingAction |
|
33 from .FormattingDiffWidget import FormattingDiffWidget |
30 from .Ui_BlackFormattingDialog import Ui_BlackFormattingDialog |
34 from .Ui_BlackFormattingDialog import Ui_BlackFormattingDialog |
31 |
|
32 from . import BlackUtilities |
|
33 from .FormattingDiffWidget import FormattingDiffWidget |
|
34 from .BlackFormattingAction import BlackFormattingAction |
|
35 |
|
36 from eric7 import Preferences, Utilities |
|
37 |
35 |
38 |
36 |
39 class BlackFormattingDialog(QDialog, Ui_BlackFormattingDialog): |
37 class BlackFormattingDialog(QDialog, Ui_BlackFormattingDialog): |
40 """ |
38 """ |
41 Class implementing a dialog showing the Black code formatting progress and the |
39 Class implementing a dialog showing the Black code formatting progress and the |