--- a/src/eric7/Testing/Interfaces/PytestRunner.py Tue Apr 16 15:47:11 2024 +0200 +++ b/src/eric7/Testing/Interfaces/PytestRunner.py Sat Apr 20 18:01:36 2024 +0200 @@ -134,13 +134,13 @@ self.__wasSkipped = False self.__wasXfail = False - def pytest_report_header(self, config, startdir): # noqa: U100 + def pytest_report_header(self, config, _startdir): """ Public method called by pytest before any reporting. @param config reference to the configuration object @type Config - @param startdir starting directory + @param _startdir starting directory (unused) @type LocalPath """ self.__writer.write({"event": "config", "root": str(config.rootdir)}) @@ -178,14 +178,14 @@ } ) - def pytest_runtest_logstart(self, nodeid, location): # noqa: U100 + def pytest_runtest_logstart(self, nodeid, _location): """ Public method called by pytest before running a test. @param nodeid node id of the test item @type str - @param location tuple containing the file name, the line number and - the test name + @param _location tuple containing the file name, the line number and + the test name (unused) @type tuple of (str, int, str) """ self.__testsRun += 1 @@ -270,24 +270,24 @@ self.__writer.write(data) - def pytest_sessionstart(self, session): # noqa: U100 + def pytest_sessionstart(self, _session): """ Public method called by pytest before performing collection and entering the run test loop. - @param session reference to the session object + @param _session reference to the session object (unused) @type Session """ self.__totalStartTime = time.monotonic_ns() self.__testsRun = 0 - def pytest_sessionfinish(self, session, exitstatus): # noqa: U100 + def pytest_sessionfinish(self, _session, _exitstatus): """ Public method called by pytest after the whole test run finished. - @param session reference to the session object + @param _session reference to the session object (unused) @type Session - @param exitstatus exit status + @param _exitstatus exit status (unused) @type int or ExitCode """ stopTime = time.monotonic_ns()