summaryrefslogtreecommitdiff
path: root/lorrycontroller
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 20:29:25 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 20:37:53 +0100
commit4cecc237979f139d72c7f4e4ccdd1b6af5a1bccd (patch)
treeb109c952074ce948d811e8b645f444da36fa2abb /lorrycontroller
parentb796eb8031342f8815506f69e5c19d97cccdfa03 (diff)
downloadlorry-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.
Diffstat (limited to 'lorrycontroller')
-rw-r--r--lorrycontroller/__init__.py33
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',
+]