Skip to content

Commit 5770e9f

Browse files
committed
fix linting errors
1 parent 75b6a46 commit 5770e9f

49 files changed

Lines changed: 49 additions & 61 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ statistics = true
107107
show-source = false
108108
max-line-length = 120
109109
# E203,W503 and E704 are incompatible with the formatter black
110-
ignore = ["E203", "W503", "E704"]
110+
ignore = ["E203", "W503", "E704", "B042"]
111111
inline-quotes = '"'
112112
docstring-quotes = '"""'
113113
multiline-quotes = '"""'

examples/dns/create_recordset.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
],
2525
type="A",
2626
)
27-
create_record_response = client.create_record_set(
28-
project_id, zone_id, create_recordset_payload
29-
)
27+
create_record_response = client.create_record_set(project_id, zone_id, create_recordset_payload)
3028

3129
# Get the DNS record for the newly create DNS zone
3230
print(

examples/dns/create_zone.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
# Create a new DNS zone
1414
create_zone_payload = CreateZonePayload(name="myZone", dnsName="testZone.com")
15-
create_zone_response = client.create_zone(
16-
create_zone_payload=create_zone_payload, project_id=project_id
17-
)
15+
create_zone_response = client.create_zone(create_zone_payload=create_zone_payload, project_id=project_id)
1816

1917
print(create_zone_payload)

examples/iaas/create_network_area.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,4 @@
3232
transferNetwork="192.160.0.0/24",
3333
)
3434
)
35-
print(
36-
client.create_network_area_region(organization_id, network_area.id, "eu01", payload)
37-
)
35+
print(client.create_network_area_region(organization_id, network_area.id, "eu01", payload))

examples/iaas/delete_network_area.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
# wait for all network area regions to be deleted
2020
while True:
21-
list_regions_resp = client.list_network_area_regions(
22-
organization_id, network_area_id
23-
)
21+
list_regions_resp = client.list_network_area_regions(organization_id, network_area_id)
2422
if len(list_regions_resp.regions) < 1:
2523
break
2624
time.sleep(3)

examples/loadbalancer/create_loadbalancer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,4 @@
5050
)
5151
],
5252
)
53-
response = client.create_load_balancer(
54-
project_id, X_REQUEST_ID, create_load_balancer_payload
55-
)
53+
response = client.create_load_balancer(project_id, X_REQUEST_ID, create_load_balancer_payload)

examples/ske/create_cluster.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,5 @@
4141
)
4242
],
4343
)
44-
cluster = client.create_or_update_cluster(
45-
project_id, cluster_name, create_cluster_payload
46-
)
44+
cluster = client.create_or_update_cluster(project_id, cluster_name, create_cluster_payload)
4745
print("Created cluster with name: " + cluster.name)

services/alb/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ show-source = false
101101
max-line-length = 120
102102
# E203,W503 and E704 are incompatible with the formatter black
103103
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
104-
ignore = ["E203", "W503", "E704", "W291"]
104+
ignore = ["E203", "W503", "E704", "W291", "B042"]
105105
inline-quotes = '"'
106106
docstring-quotes = '"""'
107107
multiline-quotes = '"""'

services/auditlog/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ show-source = false
101101
max-line-length = 120
102102
# E203,W503 and E704 are incompatible with the formatter black
103103
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
104-
ignore = ["E203", "W503", "E704", "W291"]
104+
ignore = ["E203", "W503", "E704", "W291", "B042"]
105105
inline-quotes = '"'
106106
docstring-quotes = '"""'
107107
multiline-quotes = '"""'

services/authorization/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ show-source = false
101101
max-line-length = 120
102102
# E203,W503 and E704 are incompatible with the formatter black
103103
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
104-
ignore = ["E203", "W503", "E704", "W291"]
104+
ignore = ["E203", "W503", "E704", "W291", "B042"]
105105
inline-quotes = '"'
106106
docstring-quotes = '"""'
107107
multiline-quotes = '"""'

0 commit comments

Comments
 (0)