Skip to content

Commit 478d4ba

Browse files
therveci.datadog-api-spec
andauthored
Update dependencies (#1547)
* Update dependencies Update some dev and runtime dependencies. * pre-commit fixes * Keep the aiosonic pin, still not 3.11 compliant * Forgot one * Add __all__ * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f029d6f commit 478d4ba

File tree

16 files changed

+2052
-14
lines changed

16 files changed

+2052
-14
lines changed

.generator/src/generator/templates/apis.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
from {{ package }}.{{ version }}.api.{{ classname|safe_snake_case }} import {{ classname }}
44
{%- endfor %}
55

6+
7+
__all__ = [
8+
{%- for api in apis %}
9+
{%- set classname = api.replace(" ", "") + "Api" %}
10+
"{{ classname }}",
11+
{%- endfor %}
12+
]

.generator/src/generator/templates/init.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ from {{ package }}.api_client import ApiClient, AsyncApiClient
44
from {{ package }}.configuration import Configuration
55
from {{ package }}.exceptions import (
66
OpenApiException, ApiAttributeError, ApiTypeError, ApiValueError, ApiKeyError, ApiException)
7+
8+
9+
__all__ = ["ApiClient", "AsyncApiClient", "Configuration", "OpenApiException",
10+
"ApiAttributeError", "ApiTypeError", "ApiValueError", "ApiKeyError",
11+
"ApiException"]

.generator/src/generator/templates/models.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
from {{ package }}.{{ version }}.model.{{ model|safe_snake_case }} import {{ model }}
33
{%- endfor %}
44

5+
__all__ = [
6+
{%- for model in models %}
7+
"{{ model }}",
8+
{%- endfor %}
9+
]

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ repos:
1111
name: Format documentation
1212
stages: [manual]
1313
language: node
14-
language_version: 14.12.0
14+
language_version: 18.16.1
1515
entry: prettier --write --list-different --ignore-unknown README.md
1616
"types": [text]
1717
files: 'README.md'
1818
pass_filenames: false
1919
additional_dependencies:
2020
# When updating the version of prettier, make sure to check the pre-commit file
2121
# And keep the `entry` here up to date https://github.com/pre-commit/mirrors-prettier/blob/master/.pre-commit-hooks.yaml
22-
- prettier@2.5.1
22+
- prettier@2.8.8
2323
- id: api-docs
2424
name: Generate API docs
2525
stages: [manual]
@@ -47,15 +47,15 @@ repos:
4747
additional_dependencies:
4848
- "poetry"
4949
- repo: https://github.com/psf/black
50-
rev: 22.3.0
50+
rev: 23.3.0
5151
hooks:
5252
- id: black
5353
stages: [manual]
5454
entry: black --fast --line-length 120 src examples tests
5555
files: '^(src|examples|tests)'
5656
pass_filenames: false
5757
- repo: https://github.com/charliermarsh/ruff-pre-commit
58-
rev: v0.0.137
58+
rev: v0.0.275
5959
hooks:
6060
- id: ruff
6161
entry: ruff --fix --quiet --exit-zero --fixable I001,F401 --ignore E501 src examples tests

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tests =
5959
glom
6060
jinja2
6161
pytest
62-
pytest-bdd==6.0.1
62+
pytest-bdd>=6.1.1
6363
pytest-asyncio
6464
pytest-randomly
6565
pytest-recording

src/datadog_api_client/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
22
# This product includes software developed at Datadog (https://www.datadoghq.com/).
33
# Copyright 2019-Present Datadog, Inc.
4-
5-
from datadog_api_client.api_client import ApiClient, AsyncApiClient, ThreadedApiClient
6-
from datadog_api_client.configuration import Configuration

src/datadog_api_client/api_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ def select_header_content_type(self, content_types: List[str]) -> str:
426426

427427

428428
class ThreadedApiClient(ApiClient):
429-
430429
_pool = None
431430

432431
def __init__(self, configuration: Configuration, pool_threads: int = 1):
@@ -514,7 +513,6 @@ async def _call_api(
514513
request_timeout: Optional[Union[int, float, Tuple[Union[int, float], Union[int, float]]]] = None,
515514
check_type: Optional[bool] = None,
516515
):
517-
518516
# perform request and return response
519517
response = await self.rest_client.request(
520518
method,
@@ -647,7 +645,6 @@ def _gather_params(self, kwargs):
647645
return params
648646

649647
def call_with_http_info(self, **kwargs):
650-
651648
is_unstable = self.api_client.configuration.unstable_operations.get(
652649
"{}.{}".format(self.settings["version"], self.settings["operation_id"])
653650
)

src/datadog_api_client/model_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,6 @@ class UnparsedObject(ModelNormal):
16291629
)
16301630

16311631
def __init__(self, **kwargs):
1632-
16331632
self._data_store = {}
16341633
self._unparsed = True
16351634

src/datadog_api_client/v1/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@
1212
ApiKeyError,
1313
ApiException,
1414
)
15+
16+
17+
__all__ = [
18+
"ApiClient",
19+
"AsyncApiClient",
20+
"Configuration",
21+
"OpenApiException",
22+
"ApiAttributeError",
23+
"ApiTypeError",
24+
"ApiValueError",
25+
"ApiKeyError",
26+
"ApiException",
27+
]

src/datadog_api_client/v1/apis/__init__.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,38 @@
2929
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
3030
from datadog_api_client.v1.api.users_api import UsersApi
3131
from datadog_api_client.v1.api.webhooks_integration_api import WebhooksIntegrationApi
32+
33+
34+
__all__ = [
35+
"AWSIntegrationApi",
36+
"AWSLogsIntegrationApi",
37+
"AuthenticationApi",
38+
"AzureIntegrationApi",
39+
"DashboardListsApi",
40+
"DashboardsApi",
41+
"DowntimesApi",
42+
"EventsApi",
43+
"GCPIntegrationApi",
44+
"HostsApi",
45+
"IPRangesApi",
46+
"KeyManagementApi",
47+
"LogsApi",
48+
"LogsIndexesApi",
49+
"LogsPipelinesApi",
50+
"MetricsApi",
51+
"MonitorsApi",
52+
"NotebooksApi",
53+
"OrganizationsApi",
54+
"PagerDutyIntegrationApi",
55+
"SecurityMonitoringApi",
56+
"ServiceChecksApi",
57+
"ServiceLevelObjectiveCorrectionsApi",
58+
"ServiceLevelObjectivesApi",
59+
"SlackIntegrationApi",
60+
"SnapshotsApi",
61+
"SyntheticsApi",
62+
"TagsApi",
63+
"UsageMeteringApi",
64+
"UsersApi",
65+
"WebhooksIntegrationApi",
66+
]

0 commit comments

Comments
 (0)