Skip to content

Commit 380dd6c

Browse files
simorenohannatischgahl-levytjprescott
authored
[Cosmos] disable api version check for new pylint requirements (#24008)
* initial commit * Client Constructor (#20310) * Removed some stuff * Looking at constructors * Updated request * Added client close * working client creation Co-authored-by: simorenoh <[email protected]> * read database database read works, but ignored exception is returned: Fatal error on SSL transport NoneType has no attribute 'send' (_loop._proactor.send) RuntimeError: Event loop is closed Unclosed connector/ connection * Update simon_testfile.py * with coroutine Added methods needed to use async with when initializing client, but logs output "Exception ignored... Runtime Error: Event loop is closed" * Update simon_testfile.py * small changes * async with returns no exceptions * async read container * async item read * cleaning up * create item/ database methods * item delete working * docs replace functionality missing upsert and other resources * upsert functionality missing read_all_items and both query methods for container class * missing query methods * CRUD for udf, sproc, triggers * initial query logic + container methods * missing some execution logic and tests * oops * fully working queries * small fix to query_items() also fixed README and added examples_async * Update _cosmos_client_connection_async.py * Update _cosmos_client_connection.py * documentation update * updated MIT dates and get_user_client() description * Update CHANGELOG.md * Delete simon_testfile.py * leftover retry utility * Update README.md * docs and removed six package * changes based on comments still missing discussion resolution on SSL verification and tests for async functionality under test module (apart from samples which are basically end to end tests) * small change in type hints * updated readme * fixes based on conversations * added missing type comments * update changelog for ci pipeline * added typehints, moved params into keywords, added decorators, made _connection_policy private * changes based on sync with central sdk * remove is_system_key from scripts (only used in execute_sproc) is_system_key verifies that an empty partition key is properly dealt with if ['partitionKey']['systemKey'] exists in the container options - however, we do not allow containers to be created with empty partition key values in the python sdk, so the functionality is needless * Revert "remove is_system_key from scripts (only used in execute_sproc)" Reverting last commit, will find way to init is_system_key for now * async script proxy using composition * pylint * capitalized constants * Apply suggestions from code review Clarifying comments for README Co-authored-by: Gahl Levy <[email protected]> * closing python code snippet * last doc updates * Update sdk/cosmos/azure-cosmos/CHANGELOG.md Co-authored-by: Simon Moreno <[email protected]> * version update * cosmos updates for release * fix connection string comma * Update CHANGELOG.md * fixing extra await keyword in sample * Update CHANGELOG.md * Update CHANGELOG.md * pythonified code, added versions info and new pylint disable for api_version kwarg on client init * Update CHANGELOG.md * disable option moved to work * moved again * removing changelog entry since change is pipeline-related * removed old versions still would like to have the newer versions to track the changes that have been made/ changes the SDK might need to do in the future with api versions * reverted renaming Co-authored-by: annatisch <[email protected]> Co-authored-by: Gahl Levy <[email protected]> Co-authored-by: Travis Prescott <[email protected]>
1 parent 8df4a37 commit 380dd6c

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22

33
### 4.3.0b5 (Unreleased)
44

5-
#### Features Added
6-
7-
#### Breaking Changes
8-
9-
#### Bugs Fixed
10-
115
#### Other Changes
12-
- Added samples showing how to configure retry options for both the sync and async clients.
13-
- Deprecated the `connection_retry_policy` and `retry_options` options in the sync client.
6+
- Added samples showing how to configure retry options for both the sync and async clients.
7+
- Deprecated the `connection_retry_policy` and `retry_options` options in the sync client.
8+
149
### 4.3.0b4 (2022-04-07)
1510

1611
#### Features Added

sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def _build_connection_policy(kwargs):
8888

8989
return policy
9090

91-
class CosmosClient(object):
91+
92+
class CosmosClient(object): # pylint: disable=client-accepts-api-version-keyword
9293
"""A client-side logical representation of an Azure Cosmos DB account.
9394
9495
Use this client to configure and execute requests to the Azure Cosmos DB service.

sdk/cosmos/azure-cosmos/azure/cosmos/cosmos_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _build_connection_policy(kwargs):
129129
return policy
130130

131131

132-
class CosmosClient(object):
132+
class CosmosClient(object): # pylint: disable=client-accepts-api-version-keyword
133133
"""A client-side logical representation of an Azure Cosmos DB account.
134134
135135
Use this client to configure and execute requests to the Azure Cosmos DB service.

0 commit comments

Comments
 (0)