Imports cleanup

This commit is contained in:
Veronica K. B. Olsen
2020-09-26 13:02:51 +02:00
parent e36892ed38
commit eb66b879c5
27 changed files with 37 additions and 38 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ codecov:
coverage:
precision: 2
round: nearest
range: "70...90"
range: "70...95"
status:
project:
-4
View File
@@ -25,10 +25,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
logger = logging.getLogger(__name__)
class isoLanguage():
ISO_639_1 = {
+1 -1
View File
@@ -25,9 +25,9 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import nw
import logging
import json
import nw
from os import path
from time import time
+3 -2
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path, mkdir, listdir, unlink, rename, rmdir
from lxml import etree
@@ -41,7 +41,8 @@ from nw.core.document import NWDoc
from nw.core.status import NWStatus
from nw.core.options import OptionState
from nw.common import (
checkString, checkBool, checkInt, isHandle, formatTimeStamp, makeFileNameSafe
checkString, checkBool, checkInt, isHandle, formatTimeStamp,
makeFileNameSafe
)
from nw.constants import (
nwFiles, nwItemType, nwItemClass, nwItemLayout, nwLabels, nwAlert
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path, listdir
from difflib import get_close_matches
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path
from datetime import datetime
+1 -1
View File
@@ -25,9 +25,9 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import nw
import logging
import json
import nw
from os import path
from time import time
+1 -1
View File
@@ -27,8 +27,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtGui import QColor, QPalette, QPainter, QFontMetrics
from PyQt5.QtCore import (
+1 -1
View File
@@ -30,8 +30,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from time import time
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt, QRegularExpression
from PyQt5.QtGui import (
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (
+5 -3
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (
@@ -34,9 +34,11 @@ from PyQt5.QtWidgets import (
QListWidgetItem, QDialogButtonBox, QLabel, QMessageBox
)
from nw.constants import nwAlert, nwItemType, nwItemClass, nwItemLayout, nwConst
from nw.gui.custom import QHelpLabel
from nw.core import NWDoc
from nw.gui.custom import QHelpLabel
from nw.constants import (
nwAlert, nwItemType, nwItemClass, nwItemLayout, nwConst
)
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -29,8 +29,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt, QUrl, QSize, pyqtSlot
from PyQt5.QtGui import (
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QFont, QPixmap
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtWidgets import (
QDialog, QVBoxLayout, QGridLayout, QLineEdit, QComboBox, QLabel,
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import QUrl, QProcess
from PyQt5.QtGui import QDesktopServices
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from time import time
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path
from datetime import datetime
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap, QColor, QBrush
+1 -1
View File
@@ -26,8 +26,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from PyQt5.QtCore import Qt, QSize
from PyQt5.QtGui import QIcon
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path
+1 -1
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from time import time
+1 -1
View File
@@ -26,9 +26,9 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import nw
import logging
import configparser
import nw
from os import path, listdir
from math import ceil
+1 -1
View File
@@ -25,9 +25,9 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import nw
import logging
import json
import nw
from os import path
from datetime import datetime
+6 -6
View File
@@ -25,8 +25,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import logging
import nw
import logging
from os import path
from datetime import datetime
@@ -40,11 +40,11 @@ from PyQt5.QtWidgets import (
)
from nw.gui import (
GuiBuildNovel, GuiDocEditor, GuiDocMerge, GuiDocSplit, GuiDocViewDetails,
GuiDocViewer, GuiItemDetails, GuiItemEditor, GuiMainMenu, GuiMainStatus,
GuiOutline, GuiOutlineDetails, GuiPreferences, GuiProjectLoad, GuiTheme,
GuiProjectSettings, GuiProjectTree, GuiWritingStats, GuiProjectWizard,
GuiAbout
GuiAbout, GuiBuildNovel, GuiDocEditor, GuiDocMerge, GuiDocSplit,
GuiDocViewDetails, GuiDocViewer, GuiItemDetails, GuiItemEditor,
GuiMainMenu, GuiMainStatus, GuiOutline, GuiOutlineDetails, GuiPreferences,
GuiProjectLoad, GuiProjectSettings, GuiProjectTree, GuiProjectWizard,
GuiTheme, GuiWritingStats
)
from nw.core import NWProject, NWDoc, NWIndex
from nw.constants import nwItemType, nwItemClass, nwAlert