Skip to content

Commit 2c33785

Browse files
committed
remove leftover pylint disable comments
1 parent 01e57d8 commit 2c33785

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

aikido_zen/background_process/comms.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from threading import Thread
88
from aikido_zen.helpers.logging import logger
99

10-
# pylint: disable=invalid-name # This variable does change
1110
comms = None
1211

1312

@@ -21,7 +20,6 @@ def get_comms():
2120

2221
def reset_comms():
2322
"""This will reset communications"""
24-
# pylint: disable=global-statement # This needs to be global
2523
global comms
2624
if comms:
2725
logger.debug("Resetting communications. (comms = None)")
@@ -40,7 +38,6 @@ def __init__(self, address, key):
4038

4139
# Set as global ipc object :
4240
reset_comms()
43-
# pylint: disable=global-statement # This needs to be global
4441
global comms
4542
comms = self
4643

aikido_zen/sources/django/pre_response_middleware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ def pre_response_middleware(request, *args, **kwargs):
77
"""Aikido middleware that handles ratelimiting"""
88
response = request_handler(stage="pre_response")
99
if response:
10-
# pylint:disable=import-outside-toplevel # We don't want to install this by default
1110
from django.http import HttpResponse
1211

1312
return HttpResponse(response[0], status=response[1])

aikido_zen/vulnerabilities/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def run_vulnerability_scan(kind, op, args):
9292
logger.error(
9393
"Vulnerability type %s currently has no scans implemented", kind
9494
)
95-
except Exception as e: # pylint: disable=broad-exception-caught
95+
except Exception as e:
9696
logger.debug("Exception occurred in run_vulnerability_scan : %s", e)
9797

9898
if injection_results:

0 commit comments

Comments
 (0)