diff --git a/.pylintrc b/.pylintrc index 99ccac38..1b5b6580 100644 --- a/.pylintrc +++ b/.pylintrc @@ -513,5 +513,5 @@ preferred-modules= # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions=BaseException, - Exception \ No newline at end of file +overgeneral-exceptions=builtins.BaseException, + builtins.Exception \ No newline at end of file diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 89623a7f..5f515391 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.1" + ".": "1.1.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9bca3e..aea3d490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. +## [1.1.2](https://github.com/microsoftgraph/msgraph-sdk-python-core/compare/v1.1.1...v1.1.2) (2024-07-12) + + +### Bug Fixes + +* adds missing whitespace for suppressions ([7ad013e](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/7ad013e52190ab607dfe82c86ae68c87e7abe4cc)) +* fixes exception configuration in pylint ([857ad99](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/857ad9950a0200dbe69d4b96052725624fbe8833)) +* linting fix import ordering ([b56cc8d](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/b56cc8d11221166fbd4c8002dfdf9eb027968b5e)) +* linting missing line ([f39f0b9](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/f39f0b9b68f94b91c6b179f5f65db960922ecc77)) +* moves attributes suppression to class definition ([b6c1d29](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/b6c1d29777829aedf50cadf994e9b8ea68d8ed4a)) +* suppressed linting error message that fails dependencies ([d7c0e1b](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/d7c0e1b901ffb0970eb6b94dd623dda41995a772)) + ## [1.1.1](https://github.com/microsoftgraph/msgraph-sdk-python-core/compare/v1.1.0...v1.1.1) (2024-07-10) diff --git a/pyproject.toml b/pyproject.toml index efb5575a..49ba8835 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "msgraph-core" # The SDK version # x-release-please-start-version -version = "1.1.1" +version = "1.1.2" # x-release-please-end authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}] description = "Core component of the Microsoft Graph Python SDK" diff --git a/requirements-dev.txt b/requirements-dev.txt index 2c625628..a0e42624 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -104,7 +104,7 @@ toml==0.10.2 tomli==2.0.1 ; python_version < '3.11' -tomlkit==0.12.5 ; python_version >= '3.7' +tomlkit==0.13.0 ; python_version >= '3.7' trio==0.26.0 diff --git a/src/msgraph_core/_constants.py b/src/msgraph_core/_constants.py index 33794627..d9887bca 100644 --- a/src/msgraph_core/_constants.py +++ b/src/msgraph_core/_constants.py @@ -10,6 +10,6 @@ DEFAULT_CONNECTION_TIMEOUT = 30 # The SDK version # x-release-please-start-version -SDK_VERSION = '1.1.1' +SDK_VERSION = '1.1.2' # x-release-please-end MS_DEFAULT_SCOPE = 'https://graph.microsoft.com/.default' diff --git a/src/msgraph_core/base_graph_request_adapter.py b/src/msgraph_core/base_graph_request_adapter.py index 2ca00adc..51834b6f 100644 --- a/src/msgraph_core/base_graph_request_adapter.py +++ b/src/msgraph_core/base_graph_request_adapter.py @@ -1,3 +1,4 @@ +from typing import Optional import httpx from kiota_abstractions.authentication import AuthenticationProvider from kiota_abstractions.serialization import ( @@ -7,7 +8,6 @@ SerializationWriterFactoryRegistry, ) from kiota_http.httpx_request_adapter import HttpxRequestAdapter -from typing import Optional from .graph_client_factory import GraphClientFactory diff --git a/src/msgraph_core/tasks/large_file_upload.py b/src/msgraph_core/tasks/large_file_upload.py index a848caee..dcb5c5c0 100644 --- a/src/msgraph_core/tasks/large_file_upload.py +++ b/src/msgraph_core/tasks/large_file_upload.py @@ -14,9 +14,10 @@ from kiota_abstractions.request_adapter import RequestAdapter -from msgraph_core.models import LargeFileUploadSession, UploadResult, UploadSessionDataHolder # check imports +from msgraph_core.models import LargeFileUploadSession, UploadResult # check imports +# pylint: disable=too-many-instance-attributes class LargeFileUploadTask: def __init__( @@ -128,7 +129,7 @@ async def upload(self, after_chunk_upload: Optional[Callable] = None): self.next_range = next_range[0] + "-" process_next = await self.next_chunk(self.stream) - except Exception as error: + except Exception as error: #pylint: disable=broad-except logging.error("Error uploading chunk %s", error) finally: self.chunks -= 1