Tue, 20 Dec 2022 17:41:13 +0100
Resorted imports with isort.
--- a/ColorString.epj Mon Oct 24 16:18:11 2022 +0200 +++ b/ColorString.epj Tue Dec 20 17:41:13 2022 +0100 @@ -189,7 +189,8 @@ "ColorString/Documentation/LICENSE.GPL3", "ColorString/Documentation/source", "PKGLIST", - "PluginColorString.zip" + "PluginColorString.zip", + "pyproject.toml" ], "OTHERTOOLSPARMS": { "Black": { @@ -207,6 +208,23 @@ "py38", "py37" ] + }, + "isort": { + "combine_as_imports": true, + "config_source": "project", + "extend_skip_glob": [ + "*/Ui_*.py" + ], + "lines_between_types": 1, + "profile": "black", + "sort_order": "natural", + "supported_extensions": [ + "py", + "pyi", + "pyx", + "pxd", + "pyw" + ] } }, "PACKAGERSPARMS": {}, @@ -244,6 +262,7 @@ "ColorString/i18n/colorstring_ru.ts" ], "TRANSLATIONSBINPATH": "", + "TRANSLATIONSOURCESTARTPATH": "", "UICPARAMS": { "Package": "", "PackagesRoot": "",
--- a/ColorString/ColorSelectionDialog.py Mon Oct 24 16:18:11 2022 +0200 +++ b/ColorString/ColorSelectionDialog.py Tue Dec 20 17:41:13 2022 +0100 @@ -7,7 +7,7 @@ Module implementing a dialog to select a color by name. """ -from PyQt6.QtGui import QColor, QPixmap, QIcon +from PyQt6.QtGui import QColor, QIcon, QPixmap from PyQt6.QtWidgets import QDialog from .Ui_ColorSelectionDialog import Ui_ColorSelectionDialog
--- a/PluginColorString.py Mon Oct 24 16:18:11 2022 +0200 +++ b/PluginColorString.py Tue Dec 20 17:41:13 2022 +0100 @@ -12,7 +12,7 @@ from PyQt6.QtCore import QObject, QTranslator from PyQt6.QtGui import QColor -from PyQt6.QtWidgets import QColorDialog, QMenu, QDialog +from PyQt6.QtWidgets import QColorDialog, QDialog, QMenu from eric7.EricWidgets import EricMessageBox from eric7.EricWidgets.EricApplication import ericApp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyproject.toml Tue Dec 20 17:41:13 2022 +0100 @@ -0,0 +1,10 @@ +[tool.isort] +profile = "black" +sort_order = "natural" +supported_extensions = ["py", "pyi", "pyx", "pxd", "pyw"] +lines_between_types = 1 +extend_skip_glob = [ + "*/Ui_*.py", +] +combine_as_imports = true +known_first_party = ["ColorString", "eric7"]