diff --git a/nw/core/project.py b/nw/core/project.py index 8649e978..de6d30a2 100644 --- a/nw/core/project.py +++ b/nw/core/project.py @@ -302,8 +302,7 @@ class NWProject(): nHandle = self.newRoot(self.tr("Novel"), nwItemClass.NOVEL) for newRoot in projData.get("addRoots", []): if newRoot in nwItemClass: - self.newRoot(trConst(nwLabels.CLASS_NAME[newRoot]), newRoot - ) + self.newRoot(trConst(nwLabels.CLASS_NAME[newRoot]), newRoot) # Create a title page tHandle = self.newFile(self.tr("Title Page"), nwItemClass.NOVEL, nHandle) @@ -490,9 +489,10 @@ class NWProject(): self.tr( "Note that after the upgrade, you cannot open the project with " "an older version of novelWriter any more, so make sure you " - "have a recent backup.") + "have a recent backup." ) ) + ) if not msgYes: self.clearProject() return False diff --git a/nw/gui/about.py b/nw/gui/about.py index f163f934..c0615d7c 100644 --- a/nw/gui/about.py +++ b/nw/gui/about.py @@ -157,10 +157,11 @@ class GuiAbout(QDialog): "

%s

" % ( self.tr( "See the License tab for the full license text, or visit the " - "GNU website at {0} for more details.").format( - "GPL v3.0" - ) - ), + "GNU website at {0} for more details." + ).format( + "GPL v3.0" + ) + ), "

%s

" % self.tr("Credits"), "

{credits:s}

", ]).format( diff --git a/nw/gui/projtree.py b/nw/gui/projtree.py index a9d08ed1..90126ab8 100644 --- a/nw/gui/projtree.py +++ b/nw/gui/projtree.py @@ -974,8 +974,8 @@ class GuiProjectTree(QTreeWidget): else: self.makeAlert( self.tr( - "There is nowhere to add item with name '{0}'").format(nwItem.itemName - ), nwAlert.ERROR + "There is nowhere to add item with name '{0}'" + ).format(nwItem.itemName), nwAlert.ERROR ) del self._treeMap[tHandle] return None diff --git a/tests/test_core/test_core_spell.py b/tests/test_core/test_core_spell.py index 1788a833..d01bb681 100644 --- a/tests/test_core/test_core_spell.py +++ b/tests/test_core/test_core_spell.py @@ -28,7 +28,6 @@ from dummy import causeOSError from tools import readFile, writeFile from nw.core.spellcheck import NWSpellCheck, NWSpellEnchant, NWSpellSimple -from nw.constants import nwConst @pytest.mark.core def testCoreSpell_Super(monkeypatch, tmpDir, tmpConf):