Skip to content

Commit fb3ba7b

Browse files
committed
Lint
1 parent 57fe31e commit fb3ba7b

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

.pre-commit-config.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.0.1
44
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
8-
- id: name-tests-test
9-
- repo: https://github.com/pycqa/flake8
10-
rev: '4.0.1'
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: name-tests-test
9+
- repo: https://github.com/pycqa/flake8
10+
rev: "4.0.1"
1111
hooks:
12-
- id: flake8
13-
args: ['--config=.flake8']
14-
- repo: https://github.com/psf/black
15-
rev: 22.6.0
12+
- id: flake8
13+
args: ["--config=.flake8"]
14+
- repo: https://github.com/psf/black
15+
rev: 24.10.0
1616
hooks:
17-
- id: black
17+
- id: black

patch_api/api/estimates_api.py

+36-36
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def create_air_shipping_estimate_with_http_info(
258258
) # noqa: E501
259259

260260
# HTTP header `Content-Type`
261-
header_params[
262-
"Content-Type"
263-
] = self.api_client.select_header_content_type( # noqa: E501
264-
["application/json"]
261+
header_params["Content-Type"] = (
262+
self.api_client.select_header_content_type( # noqa: E501
263+
["application/json"]
264+
)
265265
) # noqa: E501
266266

267267
# Authentication setting
@@ -456,10 +456,10 @@ def create_bitcoin_estimate_with_http_info(
456456
) # noqa: E501
457457

458458
# HTTP header `Content-Type`
459-
header_params[
460-
"Content-Type"
461-
] = self.api_client.select_header_content_type( # noqa: E501
462-
["application/json"]
459+
header_params["Content-Type"] = (
460+
self.api_client.select_header_content_type( # noqa: E501
461+
["application/json"]
462+
)
463463
) # noqa: E501
464464

465465
# Authentication setting
@@ -657,10 +657,10 @@ def create_ecommerce_estimate_with_http_info(
657657
) # noqa: E501
658658

659659
# HTTP header `Content-Type`
660-
header_params[
661-
"Content-Type"
662-
] = self.api_client.select_header_content_type( # noqa: E501
663-
["application/json"]
660+
header_params["Content-Type"] = (
661+
self.api_client.select_header_content_type( # noqa: E501
662+
["application/json"]
663+
)
664664
) # noqa: E501
665665

666666
# Authentication setting
@@ -855,10 +855,10 @@ def create_flight_estimate_with_http_info(
855855
) # noqa: E501
856856

857857
# HTTP header `Content-Type`
858-
header_params[
859-
"Content-Type"
860-
] = self.api_client.select_header_content_type( # noqa: E501
861-
["application/json"]
858+
header_params["Content-Type"] = (
859+
self.api_client.select_header_content_type( # noqa: E501
860+
["application/json"]
861+
)
862862
) # noqa: E501
863863

864864
# Authentication setting
@@ -1053,10 +1053,10 @@ def create_hotel_estimate_with_http_info(
10531053
) # noqa: E501
10541054

10551055
# HTTP header `Content-Type`
1056-
header_params[
1057-
"Content-Type"
1058-
] = self.api_client.select_header_content_type( # noqa: E501
1059-
["application/json"]
1056+
header_params["Content-Type"] = (
1057+
self.api_client.select_header_content_type( # noqa: E501
1058+
["application/json"]
1059+
)
10601060
) # noqa: E501
10611061

10621062
# Authentication setting
@@ -1251,10 +1251,10 @@ def create_mass_estimate_with_http_info(
12511251
) # noqa: E501
12521252

12531253
# HTTP header `Content-Type`
1254-
header_params[
1255-
"Content-Type"
1256-
] = self.api_client.select_header_content_type( # noqa: E501
1257-
["application/json"]
1254+
header_params["Content-Type"] = (
1255+
self.api_client.select_header_content_type( # noqa: E501
1256+
["application/json"]
1257+
)
12581258
) # noqa: E501
12591259

12601260
# Authentication setting
@@ -1452,10 +1452,10 @@ def create_rail_shipping_estimate_with_http_info(
14521452
) # noqa: E501
14531453

14541454
# HTTP header `Content-Type`
1455-
header_params[
1456-
"Content-Type"
1457-
] = self.api_client.select_header_content_type( # noqa: E501
1458-
["application/json"]
1455+
header_params["Content-Type"] = (
1456+
self.api_client.select_header_content_type( # noqa: E501
1457+
["application/json"]
1458+
)
14591459
) # noqa: E501
14601460

14611461
# Authentication setting
@@ -1653,10 +1653,10 @@ def create_road_shipping_estimate_with_http_info(
16531653
) # noqa: E501
16541654

16551655
# HTTP header `Content-Type`
1656-
header_params[
1657-
"Content-Type"
1658-
] = self.api_client.select_header_content_type( # noqa: E501
1659-
["application/json"]
1656+
header_params["Content-Type"] = (
1657+
self.api_client.select_header_content_type( # noqa: E501
1658+
["application/json"]
1659+
)
16601660
) # noqa: E501
16611661

16621662
# Authentication setting
@@ -1854,10 +1854,10 @@ def create_sea_shipping_estimate_with_http_info(
18541854
) # noqa: E501
18551855

18561856
# HTTP header `Content-Type`
1857-
header_params[
1858-
"Content-Type"
1859-
] = self.api_client.select_header_content_type( # noqa: E501
1860-
["application/json"]
1857+
header_params["Content-Type"] = (
1858+
self.api_client.select_header_content_type( # noqa: E501
1859+
["application/json"]
1860+
)
18611861
) # noqa: E501
18621862

18631863
# Authentication setting

patch_api/rest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def __init__(self, api_key, configuration, pools_size=4, maxsize=None):
7474

7575
addition_pool_args = {}
7676
if configuration.assert_hostname is not None:
77-
addition_pool_args[
78-
"assert_hostname"
79-
] = configuration.assert_hostname # noqa: E501
77+
addition_pool_args["assert_hostname"] = (
78+
configuration.assert_hostname
79+
) # noqa: E501
8080

8181
if configuration.retries is not None:
8282
addition_pool_args["retries"] = configuration.retries

0 commit comments

Comments
 (0)