diff --git a/codejail/jail_code.py b/codejail/jail_code.py index 97957bd4..c1ac9471 100644 --- a/codejail/jail_code.py +++ b/codejail/jail_code.py @@ -183,7 +183,7 @@ class JailResult: def __init__(self): self.stdout = self.stderr = self.status = None - +# pylint: disable=too-many-positional-arguments def jail_code(command, code=None, files=None, extra_files=None, argv=None, stdin=None, limit_overrides_context=None, slug=None): """ @@ -229,6 +229,7 @@ def jail_code(command, code=None, files=None, extra_files=None, argv=None, # pylint: disable=too-many-statements if not is_configured(command): + # pylint: disable=broad-exception-raised raise Exception("jail_code needs to be configured for %r" % command) # We make a temp directory to serve as the home of the sandboxed code. diff --git a/codejail/proxy.py b/codejail/proxy.py index 3a389774..7e82a94c 100644 --- a/codejail/proxy.py +++ b/codejail/proxy.py @@ -71,7 +71,7 @@ def run_subprocess_through_proxy(*args, **kwargs): # pylint: disable=inconsiste proxy_stdout = proxy.stdout.readline() if not proxy_stdout: # EOF: the proxy must have died. - raise Exception("Proxy process died unexpectedly!") + raise Exception("Proxy process died unexpectedly!") # pylint: disable=broad-exception-raised status, stdout, stderr, log_calls = deserialize_out(proxy_stdout.rstrip()) # Write all the log messages to the log, and return. diff --git a/codejail/safe_exec.py b/codejail/safe_exec.py index 5a0d986d..18e034c3 100644 --- a/codejail/safe_exec.py +++ b/codejail/safe_exec.py @@ -37,6 +37,7 @@ class SafeExecException(Exception): """ +# pylint: disable=too-many-positional-arguments def safe_exec( code, globals_dict, @@ -235,6 +236,7 @@ def decode_object(obj): return json.loads(json.dumps(jd)) +# pylint: disable=too-many-positional-arguments def not_safe_exec( code, globals_dict, diff --git a/codejail/subproc.py b/codejail/subproc.py index c4d3a975..ec35f675 100644 --- a/codejail/subproc.py +++ b/codejail/subproc.py @@ -11,6 +11,7 @@ log = logging.getLogger("codejail") +# pylint: disable=too-many-positional-arguments def run_subprocess( cmd, stdin=None, cwd=None, env=None, rlimits=None, realtime=None, slug=None,