Skip to content

Commit

Permalink
Merge pull request #5888 from clebergnu/dependabot/pip/black-24.3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Mar 27, 2024
2 parents e2755cb + 77ca585 commit 6ae2f01
Show file tree
Hide file tree
Showing 126 changed files with 18 additions and 225 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uninstall:
$(PYTHON) setup.py develop --uninstall $(PYTHON_DEVELOP_ARGS)

requirements-dev: pip
- $(PYTHON) -m pip install -r requirements-dev.txt $(PYTHON_DEVELOP_ARGS)
$(PYTHON) -m pip install -r requirements-dev.txt $(PYTHON_DEVELOP_ARGS)

smokecheck: clean uninstall develop
$(PYTHON) -m avocado run examples/tests/passtest.py
Expand Down
1 change: 0 additions & 1 deletion avocado/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@


class AvocadoApp:

"""
Avocado application.
"""
Expand Down
5 changes: 0 additions & 5 deletions avocado/core/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def get_dispatchers(module_name):


class CLIDispatcher(EnabledExtensionManager):

"""
Calls extensions on configure/run
Expand All @@ -68,7 +67,6 @@ def __init__(self):


class CLICmdDispatcher(EnabledExtensionManager):

"""
Calls extensions on configure/run
Expand All @@ -83,7 +81,6 @@ def __init__(self):


class JobPrePostDispatcher(EnabledExtensionManager):

"""
Calls extensions before Job execution
Expand All @@ -100,7 +97,6 @@ def __init__(self):


class TestPreDispatcher(EnabledExtensionManager):

"""
Calls extensions before Test execution
Expand All @@ -115,7 +111,6 @@ def __init__(self):


class TestPostDispatcher(EnabledExtensionManager):

"""
Calls extensions after Test execution
Expand Down
15 changes: 0 additions & 15 deletions avocado/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


class JobBaseException(Exception):

"""
The parent of all job exceptions.
Expand All @@ -27,42 +26,36 @@ class JobBaseException(Exception):


class JobError(JobBaseException):

"""
A generic error happened during a job execution.
"""


class JobTestSuiteError(JobBaseException):

"""
Generic error happened during the creation of a job's test suite
"""


class JobTestSuiteEmptyError(JobTestSuiteError):

"""
Error raised when the creation of a test suite results in an empty suite
"""


class JobTestSuiteDuplicateNameError(JobTestSuiteError):

"""
Error raised when a test suite name is not unique in a job
"""


class JobTestSuiteReferenceResolutionError(JobTestSuiteError):

"""
Test References did not produce a valid reference by any resolver
"""


class JobFailFast(JobBaseException):

"""
Indicates that the test has failed because failfast is enabled.
Expand All @@ -72,14 +65,12 @@ class JobFailFast(JobBaseException):


class OptionValidationError(Exception):

"""
An invalid option was passed to the test runner
"""


class TestBaseException(Exception):

"""
The parent of all test exceptions.
Expand All @@ -91,7 +82,6 @@ class TestBaseException(Exception):


class TestSetupFail(TestBaseException):

"""
Indicates an error during a setup or cleanup procedure.
"""
Expand All @@ -100,7 +90,6 @@ class TestSetupFail(TestBaseException):


class TestError(TestBaseException):

"""
Indicates that the test was not fully executed and an error happened.
Expand All @@ -113,7 +102,6 @@ class TestError(TestBaseException):


class TestAbortError(TestBaseException):

"""
Indicates that the test was prematurely aborted.
"""
Expand All @@ -122,7 +110,6 @@ class TestAbortError(TestBaseException):


class TestSkipError(TestBaseException):

"""
Indicates that the test is skipped.
Expand All @@ -135,7 +122,6 @@ class TestSkipError(TestBaseException):


class TestFail(TestBaseException, AssertionError):

"""
Indicates that the test failed.
Expand All @@ -148,7 +134,6 @@ class TestFail(TestBaseException, AssertionError):


class TestWarn(TestBaseException):

"""
Indicates that bad things (may) have happened, but not an explicit
failure.
Expand Down
6 changes: 0 additions & 6 deletions avocado/core/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def warn_str(self, msg="WARN", move=MOVE_BACK):


class _StdOutputFile:

"""
File-like object which stores (_is_stdout, content) into the provided list
"""
Expand Down Expand Up @@ -299,7 +298,6 @@ def getvalue(self):


class StdOutput:

"""
Class to modify sys.stdout/sys.stderr
"""
Expand Down Expand Up @@ -576,7 +574,6 @@ def filter(self, record):


class ProgressStreamHandler(logging.StreamHandler):

"""
Handler class that allows users to skip new lines on each emission.
"""
Expand Down Expand Up @@ -607,7 +604,6 @@ def emit(self, record):


class MemStreamHandler(logging.StreamHandler):

"""
Handler that stores all records in self.log (shared in all instances)
"""
Expand All @@ -624,7 +620,6 @@ def flush(self):


class Paginator:

"""
Paginator that uses less to display contents on the terminal.
Expand Down Expand Up @@ -722,7 +717,6 @@ def disable_log_handler(logger):


class Throbber:

"""
Produces a spinner used to notify progress in the application UI.
"""
Expand Down
2 changes: 0 additions & 2 deletions avocado/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class NoMatchError(KeyError):


class AvocadoParams:

"""
Params object used to retrieve params from given path. It supports
absolute and relative paths. For relative paths one can define multiple
Expand Down Expand Up @@ -199,7 +198,6 @@ def iteritems(self):


class AvocadoParam:

"""
This is a single slice params. It can contain multiple leaves and tries to
find matching results.
Expand Down
3 changes: 0 additions & 3 deletions avocado/core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


class ArgumentParser(argparse.ArgumentParser):

"""
Class to override argparse functions
"""
Expand All @@ -52,7 +51,6 @@ def _get_option_tuples(self, option_string):


class FileOrStdoutAction(argparse.Action):

"""
Controls claiming the right to write to the application standard output
"""
Expand All @@ -74,7 +72,6 @@ def __call__(self, parser, namespace, values, option_string=None):


class Parser:

"""
Class to Parse the command line arguments.
"""
Expand Down
3 changes: 0 additions & 3 deletions avocado/core/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class ReferenceResolutionAction(Enum):


class ReferenceResolution:

"""
Represents one complete reference resolution
Expand Down Expand Up @@ -99,7 +98,6 @@ def __repr__(self):


class Resolver(EnabledExtensionManager):

"""
Main test reference resolution utility.
Expand Down Expand Up @@ -143,7 +141,6 @@ def resolve(self, reference):


class Discoverer(EnabledExtensionManager):

"""
Secondary test reference resolution utility.
Expand Down
1 change: 0 additions & 1 deletion avocado/core/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class Result:

"""
Result class, holder for job (and its tests) result information.
"""
Expand Down
1 change: 0 additions & 1 deletion avocado/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class SettingsError(Exception):


class ConfigFileNotFound(SettingsError):

"""
Error thrown when the main settings file could not be found.
"""
Expand Down
1 change: 0 additions & 1 deletion avocado/core/settings_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@


class SettingsDispatcher(ExtensionManager):

"""
Dispatchers that allows plugins to modify settings
Expand Down
6 changes: 3 additions & 3 deletions avocado/core/status/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def _handle_task_finished(self, message):
if result is not None and result.upper() not in STATUSES:
overridden = "error"
message["result"] = overridden
message[
"fail_reason"
] = f'Runner error occurred: Test reports unsupported status "{result}"'
message["fail_reason"] = (
f'Runner error occurred: Test reports unsupported status "{result}"'
)
LOG.error(
'Task "%s" finished message with unsupported status '
'"%s", changing to "%s"',
Expand Down
1 change: 0 additions & 1 deletion avocado/core/sysinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def gather_collectibles_config(config):


class SysInfo:

"""
Log different system properties at some key control points.
Expand Down
2 changes: 0 additions & 2 deletions avocado/core/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@


class TestData:

"""
Class that adds the ability for tests to have access to data files
Expand Down Expand Up @@ -220,7 +219,6 @@ def get_data(self, filename, source=None, must_exist=True):


class Test(unittest.TestCase, TestData):

"""
Base implementation for the test class.
Expand Down
1 change: 0 additions & 1 deletion avocado/core/test_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class TestID:

"""
Test ID construction and representation according to specification
Expand Down
4 changes: 0 additions & 4 deletions avocado/core/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@


class FilterSet(set):

"""Set of filters in standardized form"""

@staticmethod
Expand All @@ -63,7 +62,6 @@ def __str__(self):


class TreeEnvironment(dict):

"""TreeNode environment with values, origins and filters"""

def __init__(self):
Expand Down Expand Up @@ -127,7 +125,6 @@ def sort_fn(x):


class TreeNodeEnvOnly:

"""
Minimal TreeNode-like class providing interface for AvocadoParams
"""
Expand Down Expand Up @@ -171,7 +168,6 @@ def get_path(self):


class TreeNode:

"""
Class for bounding nodes into tree-structure.
"""
Expand Down
2 changes: 0 additions & 2 deletions avocado/core/varianter.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def dump_ivariants(ivariants):


class FakeVariantDispatcher:

"""
This object can act instead of VarianterDispatcher to report loaded
variants.
Expand Down Expand Up @@ -210,7 +209,6 @@ def __len__(self):


class Varianter:

"""
This object takes care of producing test variants
"""
Expand Down
Loading

0 comments on commit 6ae2f01

Please sign in to comment.