From 4cecc237979f139d72c7f4e4ccdd1b6af5a1bccd Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 10 Aug 2020 20:29:25 +0100 Subject: lorrycontroller: Explicitly list all names to be re-exported pyflakes isn't able to recognise that: __all__ = locals() effectively uses all the imported names. Replace this with an explicit list of names. Running pyflakes in CI should ensure that the list doesn't get out of sync. --- lorrycontroller/__init__.py | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/lorrycontroller/__init__.py b/lorrycontroller/__init__.py index e1128ae..b2510dc 100644 --- a/lorrycontroller/__init__.py +++ b/lorrycontroller/__init__.py @@ -65,4 +65,35 @@ def get_upstream_host(host_info): return upstream_types[host_info['type']](host_info) -__all__ = locals() +__all__ = [ + 'StateDB', + 'LorryNotFoundError', 'WrongNumberLorriesRunningJob', 'HostNotFoundError', + 'LorryControllerRoute', + 'ReadConfiguration', + 'Status', 'StatusHTML', 'StatusRenderer', + 'ListQueue', + 'ShowLorry', 'ShowLorryHTML', + 'StartQueue', 'StopQueue', + 'GiveMeJob', + 'JobUpdate', + 'ListRunningJobs', + 'MoveToTop', 'MoveToBottom', + 'StopJob', + 'ListAllJobs', 'ListAllJobsHTML', + 'ShowJob', 'ShowJobHTML', 'JobShower', + 'RemoveGhostJobs', + 'RemoveJob', + 'LsUpstreams', 'ForceLsUpstream', + 'PretendTime', + 'GetMaxJobs', 'SetMaxJobs', + 'StaticFile', + 'setup_proxy', + 'gerrit', + 'gitano', + 'gitea', + 'gitlab', + 'local', + 'downstream_types', + 'upstream_types', + 'get_upstream_host', +] -- cgit v1.2.1