Skip to content

Commit

Permalink
Imports cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Sep 26, 2020
1 parent e36892e commit eb66b87
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 38 deletions.
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ codecov:
coverage:
precision: 2
round: nearest
range: "70...90"
range: "70...95"

status:
project:
Expand Down
4 changes: 0 additions & 4 deletions nw/constants/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion nw/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions nw/core/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,7 +41,8 @@
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
Expand Down
2 changes: 1 addition & 1 deletion nw/core/spellcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/buildnovel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/doceditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nw/gui/dochighlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/docmerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
8 changes: 5 additions & 3 deletions nw/gui/docsplit.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,20 @@
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 (
QDialog, QVBoxLayout, QComboBox, QListWidget, QAbstractItemView,
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__)

Expand Down
2 changes: 1 addition & 1 deletion nw/gui/docviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/itemdetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/itemeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/mainmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/outline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nw/gui/outlinedetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nw/gui/projload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/projsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/projtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/projwizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nw/gui/statusbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nw/gui/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nw/gui/writingstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions nw/guimain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,11 +40,11 @@
)

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
Expand Down

0 comments on commit eb66b87

Please sign in to comment.