From adbd64037f5b7855060c67942b7f03d26ef3a360 Mon Sep 17 00:00:00 2001 From: mibe Date: Wed, 27 Mar 2024 17:45:02 +0000 Subject: [PATCH] fixing linting and type checking --- .../deployment/language_container_deployer.py | 6 +++++- .../deployment/language_container_deployer_cli.py | 6 +++++- pyproject.toml | 2 ++ test/unit/deployment/test_language_container_deployer.py | 4 ++++ .../unit/deployment/test_language_container_deployer_cli.py | 4 ++++ 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/exasol/python_extension_common/deployment/language_container_deployer.py b/exasol/python_extension_common/deployment/language_container_deployer.py index a511a4b..989a878 100644 --- a/exasol/python_extension_common/deployment/language_container_deployer.py +++ b/exasol/python_extension_common/deployment/language_container_deployer.py @@ -1,13 +1,17 @@ # pylint: disable=too-many-arguments # pylint: disable-msg=too-many-locals +# pylint: disable=missing-module-docstring +# pylint: disable=missing-class-docstring +# pylint: disable=missing-function-docstring +# pylint: disable=line-too-long from enum import Enum from textwrap import dedent from typing import List, Optional, Dict from pathlib import Path, PurePosixPath import logging import tempfile -import requests # type: ignore import ssl +import requests # type: ignore import pyexasol # type: ignore from exasol_bucketfs_utils_python.bucketfs_location import BucketFSLocation # type: ignore from exasol_bucketfs_utils_python.bucket_config import BucketConfig, BucketFSConfig # type: ignore diff --git a/exasol/python_extension_common/deployment/language_container_deployer_cli.py b/exasol/python_extension_common/deployment/language_container_deployer_cli.py index a09cbcd..ab974ba 100644 --- a/exasol/python_extension_common/deployment/language_container_deployer_cli.py +++ b/exasol/python_extension_common/deployment/language_container_deployer_cli.py @@ -1,11 +1,15 @@ # pylint: disable=too-many-arguments # pylint: disable-msg=too-many-locals +# pylint: disable=missing-module-docstring +# pylint: disable=missing-class-docstring +# pylint: disable=missing-function-docstring +# pylint: disable=line-too-long from typing import Optional, Any import os import re -import click from enum import Enum from pathlib import Path +import click from exasol.python_extension_common.deployment.language_container_deployer import LanguageContainerDeployer DB_PASSWORD_ENVIRONMENT_VARIABLE = "DB_PASSWORD" diff --git a/pyproject.toml b/pyproject.toml index a78f0a2..b26aa61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,9 @@ max-module-lines = 800 [[tool.mypy.overrides]] module = [ + "exasol.toolbox.nox.tasks", "test.unit.*", "test.integration.*", ] ignore_errors = true +ignore_missing_imports = true diff --git a/test/unit/deployment/test_language_container_deployer.py b/test/unit/deployment/test_language_container_deployer.py index a3c7493..3aa4ae1 100644 --- a/test/unit/deployment/test_language_container_deployer.py +++ b/test/unit/deployment/test_language_container_deployer.py @@ -1,4 +1,8 @@ # pylint: disable=redefined-outer-name +# pylint: disable=missing-module-docstring +# pylint: disable=missing-class-docstring +# pylint: disable=missing-function-docstring +# pylint: disable=line-too-long from pathlib import Path, PurePosixPath from unittest.mock import create_autospec, MagicMock, patch diff --git a/test/unit/deployment/test_language_container_deployer_cli.py b/test/unit/deployment/test_language_container_deployer_cli.py index 536844e..d7a4126 100644 --- a/test/unit/deployment/test_language_container_deployer_cli.py +++ b/test/unit/deployment/test_language_container_deployer_cli.py @@ -1,3 +1,7 @@ +# pylint: disable=missing-module-docstring +# pylint: disable=missing-class-docstring +# pylint: disable=missing-function-docstring +# pylint: disable=line-too-long import click from exasol.python_extension_common.deployment.language_container_deployer_cli import ( _ParameterFormatters, CustomizableParameters)