diff --git a/.flake8 b/.flake8 index 0a219a4bb..e6dbe70f2 100644 --- a/.flake8 +++ b/.flake8 @@ -26,6 +26,9 @@ per-file-ignores = tests/e2e/test_workflows.py: IMR241, tests/test_subcmds_sync.py: IMR241, extend-ignore = + # B042: Exception class with __init__ should pass all args to super().__init__() + # We should fix this by reworking our exception classes. + B042, # E203: Whitespace before ':' # See https://github.com/PyCQA/pycodestyle/issues/373 E203, diff --git a/subcmds/sync.py b/subcmds/sync.py index 7d3e2f925..4b13d6d96 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -1199,7 +1199,7 @@ later is required to fix a server side protocol bug. # job at the same time. Then the connection may fail if too many # connections are pending and execeeded the socket listening backlog, # especially on MacOS. - len(cls.get_parallel_context()["sync_dict"]) + _ = len(cls.get_parallel_context()["sync_dict"]) def _Fetch(self, projects, opt, err_event, ssh_proxy, errors): ret = True