Resorted imports with isort. eric7

Tue, 20 Dec 2022 17:46:09 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 20 Dec 2022 17:46:09 +0100
branch
eric7
changeset 59
df5866fce885
parent 58
319eebb00f26
child 60
c82fc89e80e4

Resorted imports with isort.

PluginApis.epj file | annotate | diff | comparison | revisions
PluginApis.py file | annotate | diff | comparison | revisions
pyproject.toml file | annotate | diff | comparison | revisions
diff -r 319eebb00f26 -r df5866fce885 PluginApis.epj
--- a/PluginApis.epj	Wed Sep 28 17:44:54 2022 +0200
+++ b/PluginApis.epj	Tue Dec 20 17:46:09 2022 +0100
@@ -230,7 +230,8 @@
       "Documentation/source",
       "PKGLIST",
       "PluginApis.epj",
-      "PluginApis.zip"
+      "PluginApis.zip",
+      "pyproject.toml"
     ],
     "OTHERTOOLSPARMS": {
       "Black": {
@@ -248,6 +249,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": {},
@@ -274,6 +292,7 @@
     "TRANSLATIONPATTERN": "",
     "TRANSLATIONS": [],
     "TRANSLATIONSBINPATH": "",
+    "TRANSLATIONSOURCESTARTPATH": "",
     "UICPARAMS": {
       "Package": "",
       "PackagesRoot": "",
diff -r 319eebb00f26 -r df5866fce885 PluginApis.py
--- a/PluginApis.py	Wed Sep 28 17:44:54 2022 +0200
+++ b/PluginApis.py	Tue Dec 20 17:46:09 2022 +0100
@@ -7,8 +7,8 @@
 Module implementing the APIs plugin.
 """
 
+import glob
 import os
-import glob
 
 from PyQt6.QtCore import QObject
 
diff -r 319eebb00f26 -r df5866fce885 pyproject.toml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml	Tue Dec 20 17:46:09 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 = ["eric7"]

eric ide

mercurial