diff options
author | 2019-02-14 18:40:00 +0100 | |
---|---|---|
committer | 2019-02-14 18:40:00 +0100 | |
commit | 021d36264bce20a1b8c3eb99176dc049483e5b7b (patch) | |
tree | 5a414fc2ebb338653f578026b234c3d295bbb014 | |
parent | Upgrades Pipfile.lock to use requests 2.20.1, fixes CVE-2018-18074 (#2) (diff) |
flake8 linelength change
-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', |