Skip to content

Skip some pylint testing #39418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from datetime import datetime
from typing import Any, Dict, Tuple

# pylint: disable=docstring-keyword-should-match-keyword-only

CHANGE_FEED_MODES = ["LatestVersion", "AllVersionsAndDeletes"]

def add_args_to_kwargs(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def on_response(
if http_response.status_code >= 400:
logger.info("Response error message: %r", _format_error(http_response.text()))
except Exception as err: # pylint: disable=broad-except
logger.warning("Failed to log request: %s", repr(err))
logger.warning("Failed to log request: %s", repr(err)) # pylint: disable=do-not-log-exceptions

# pylint: disable=unused-argument
def _default_should_log(
Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/aio/_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
# pylint: disable=protected-access, too-many-lines
# pylint: disable=missing-client-constructor-parameter-credential,missing-client-constructor-parameter-kwargs
# pylint: disable=too-many-public-methods
# pylint: disable=docstring-keyword-should-match-keyword-only

PartitionKeyType = Union[str, int, float, bool, Sequence[Union[str, int, float, bool, None]], Type[NonePartitionKeyValue]] # pylint: disable=line-too-long

Expand Down
2 changes: 2 additions & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/aio/_cosmos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
from ..documents import ConnectionPolicy, DatabaseAccount
from ..exceptions import CosmosResourceNotFoundError

# pylint: disable=docstring-keyword-should-match-keyword-only

__all__ = ("CosmosClient",)

CredentialType = Union[
Expand Down
2 changes: 2 additions & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/aio/_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
from ..documents import IndexingMode
from ..partition_key import PartitionKey

# pylint: disable=docstring-keyword-should-match-keyword-only

__all__ = ("DatabaseProxy",)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
database service.
"""

import asyncio
import asyncio # pylint: disable=do-not-import-asyncio
from urllib.parse import urlparse
from .. import _constants as constants
from .. import exceptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

"""Iterable query results in the Azure Cosmos database service.
"""
import asyncio
import asyncio # pylint: disable=do-not-import-asyncio
from azure.core.async_paging import AsyncPageIterator
from azure.cosmos._execution_context.aio import execution_dispatcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""
import json
import time
import asyncio
import asyncio # pylint: disable=do-not-import-asyncio

from azure.core.exceptions import AzureError, ClientAuthenticationError, ServiceRequestError
from azure.core.pipeline.policies import AsyncRetryPolicy
Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/aio/_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from .._base import build_options
from ..permission import Permission

# pylint: disable=docstring-keyword-should-match-keyword-only

class UserProxy:
"""An interface to interact with a specific user.
Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

# pylint: disable=too-many-lines,disable=protected-access
# pylint: disable=missing-client-constructor-parameter-credential,missing-client-constructor-parameter-kwargs
# pylint: disable=docstring-keyword-should-match-keyword-only

PartitionKeyType = Union[str, int, float, bool, Sequence[Union[str, int, float, bool, None]], Type[NonePartitionKeyValue]] # pylint: disable=line-too-long

Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/cosmos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
__all__ = ("CosmosClient",)


# pylint: disable=docstring-keyword-should-match-keyword-only

CredentialType = Union[
TokenCredential, CredentialDict, str, Mapping[str, Any], Iterable[Mapping[str, Any]]
Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

# pylint: disable=protected-access
# pylint: disable=missing-client-constructor-parameter-credential,missing-client-constructor-parameter-kwargs
# pylint: disable=docstring-keyword-should-match-keyword-only

def _get_database_link(database_or_id: Union[str, 'DatabaseProxy', Mapping[str, Any]]) -> str:
if isinstance(database_or_id, str):
Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/azure/cosmos/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# SOFTWARE.

# pylint: disable=missing-client-constructor-parameter-credential,missing-client-constructor-parameter-kwargs
# pylint: disable=docstring-keyword-should-match-keyword-only

"""Create, read, update and delete users in the Azure Cosmos DB SQL API service.
"""
Expand Down
Loading