Update linting for tests

This commit is contained in:
Veronica Berglyd Olsen
2025-08-27 21:04:32 +02:00
parent 44d117c91d
commit 5bdbd7c195
68 changed files with 78 additions and 101 deletions
+2 -6
View File
@@ -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