diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ee795df..327d5a0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,7 +105,7 @@ jobs: run: | source .venv/bin/activate isort -m 9 --line-length 160 $MODULE_NAME tests --gitignore --check-only - # pylint $MODULE_NAME tests + pylint $MODULE_NAME tests docformatter --wrap-summaries 160 --wrap-descriptions 160 -cr $MODULE_NAME tests black --check $MODULE_NAME tests mypy -V diff --git a/clairvoyance/cli.py b/clairvoyance/cli.py index 616d079..6a46137 100644 --- a/clairvoyance/cli.py +++ b/clairvoyance/cli.py @@ -45,7 +45,7 @@ def load_default_wordlist() -> List[str]: return [w.strip() for w in f.readlines() if w.strip()] -async def blind_introspection( +async def blind_introspection( # pylint: disable=too-many-arguments url: str, logger: logging.Logger, wordlist: List[str], diff --git a/clairvoyance/client.py b/clairvoyance/client.py index 73f8ac6..7a33013 100644 --- a/clairvoyance/client.py +++ b/clairvoyance/client.py @@ -8,7 +8,7 @@ from clairvoyance.entities.interfaces import IClient -class Client(IClient): +class Client(IClient): # pylint: disable=too-many-instance-attributes def __init__( self, url: str, diff --git a/clairvoyance/entities/context.py b/clairvoyance/entities/context.py index 04c7f30..1b1b8bf 100644 --- a/clairvoyance/entities/context.py +++ b/clairvoyance/entities/context.py @@ -10,11 +10,11 @@ # Quick resolve the context variables using macros. config: Callable[..., IConfig] = ( - lambda: config_ctx.get() -) # pylint: disable=unnecessary-lambda + lambda: config_ctx.get() # pylint: disable=unnecessary-lambda +) client: Callable[..., IClient] = ( - lambda: client_ctx.get() -) # pylint: disable=unnecessary-lambda + lambda: client_ctx.get() # pylint: disable=unnecessary-lambda +) log: Callable[..., logging.Logger] = ( - lambda: logger_ctx.get() -) # pylint: disable=unnecessary-lambda + lambda: logger_ctx.get() # pylint: disable=unnecessary-lambda +) diff --git a/clairvoyance/entities/interfaces.py b/clairvoyance/entities/interfaces.py index 722228c..fbd3821 100644 --- a/clairvoyance/entities/interfaces.py +++ b/clairvoyance/entities/interfaces.py @@ -31,4 +31,5 @@ async def post( ) -> Dict: ... @abstractmethod - async def close(self) -> None: ... + async def close(self) -> None: + pass diff --git a/tests/graphql_test.py b/tests/graphql_test.py index 2a53986..4008f0b 100644 --- a/tests/graphql_test.py +++ b/tests/graphql_test.py @@ -60,9 +60,9 @@ class TestPost(aiounittest.AsyncTestCase): def setUpClass(cls) -> None: Client("http://localhost:8000/graphql") - cls._unstable = subprocess.Popen( + cls._unstable = subprocess.Popen( # pylint: disable=consider-using-with ["python3", "tests/server/unstable.py"] - ) # pylint: disable=consider-using-with + ) time.sleep(1) @classmethod diff --git a/tests/oracle_test.py b/tests/oracle_test.py index a255598..e0cba17 100644 --- a/tests/oracle_test.py +++ b/tests/oracle_test.py @@ -287,9 +287,9 @@ class TestProbeTypename(aiounittest.AsyncTestCase): def setUpClass(cls) -> None: Client("http://localhost:8081/graphql") - cls._unstable = subprocess.Popen( + cls._unstable = subprocess.Popen( # pylint: disable=consider-using-with ["python3", "tests/server/graphql.py"] - ) # pylint: disable=consider-using-with + ) time.sleep(1) @classmethod