diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-08-10 20:29:25 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-08-10 20:37:53 +0100 |
commit | 4cecc237979f139d72c7f4e4ccdd1b6af5a1bccd (patch) | |
tree | b109c952074ce948d811e8b645f444da36fa2abb | |
parent | b796eb8031342f8815506f69e5c19d97cccdfa03 (diff) | |
download | lorry-controller-4cecc237979f139d72c7f4e4ccdd1b6af5a1bccd.tar.gz |
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.
-rw-r--r-- | lorrycontroller/__init__.py | 33 |
1 files changed, 32 insertions, 1 deletions
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', +] |