Update linting for tests
This commit is contained in:
+2
-6
@@ -17,7 +17,7 @@ General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
"""
|
||||
""" # noqa
|
||||
from __future__ import annotations
|
||||
|
||||
import shutil
|
||||
@@ -124,7 +124,7 @@ def xmlToText(xElem):
|
||||
|
||||
|
||||
def readFile(fileName: str | Path):
|
||||
"""Returns the content of a file as a string."""
|
||||
"""Return the content of a file as a string."""
|
||||
with open(fileName, mode="r", encoding="utf-8") as inFile:
|
||||
return inFile.read()
|
||||
|
||||
@@ -154,8 +154,6 @@ def cleanProject(path: str | Path):
|
||||
if tocFile.is_file():
|
||||
tocFile.unlink()
|
||||
|
||||
return
|
||||
|
||||
|
||||
def clearLogHandlers():
|
||||
"""Clear all log handlers."""
|
||||
@@ -235,7 +233,6 @@ class SimpleDialog(QDialog):
|
||||
self.setLayout(layout)
|
||||
if widget:
|
||||
layout.addWidget(widget)
|
||||
return
|
||||
|
||||
@property
|
||||
def widget(self) -> QWidget | None:
|
||||
@@ -246,4 +243,3 @@ class SimpleDialog(QDialog):
|
||||
layout = self.layout()
|
||||
assert layout is not None
|
||||
layout.addWidget(widget)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user