diff options
| -rw-r--r-- | .flake8 (renamed from tox.ini) | 2 | ||||
| -rw-r--r-- | config.py | 3 | ||||
| -rw-r--r-- | snekbox.py | 5 | 
3 files changed, 7 insertions, 3 deletions
| @@ -1,5 +1,5 @@  [flake8] -max-line-length=120 +max-line-length=100  application_import_names=snekbox  ignore=P102,B311,W503,E226,S311  exclude=__pycache__, venv, .venv, tests @@ -12,7 +12,8 @@ def autodiscover():          try:              container = client.containers.get(name)              if container.status == "running": -                host = list(container.attrs.get('NetworkSettings').get('Networks').values())[0]['IPAddress'] +                host = list(container.attrs.get('NetworkSettings').get('Networks').values()) +                host = host[0]['IPAddress']                  return host          except NotFound: @@ -17,7 +17,10 @@ class Snekbox(object):          self.nsjail_workaround()      env = { -        'PATH': '/snekbox/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', +        'PATH': ( +            '/snekbox/.venv/bin:/usr/local/bin:/usr/local/' +            'sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' +        ),          'LANG': 'en_US.UTF-8',          'PYTHON_VERSION': '3.6.5',          'PYTHON_PIP_VERSION': '10.0.1', | 
