Skip to content

Commit 61cf1df

Browse files
committed
fix static checks
1 parent 2053cb0 commit 61cf1df

33 files changed

+329
-327
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches:
77
- main
8-
- feat/tortoise
8+
# - feat/tortoise
99

1010
permissions:
1111
id-token: write # This is required for requesting the JWT

aws_advanced_python_wrapper/blue_green_plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,9 @@ def _update_ip_address_flags(self):
11561156
{host_info.host for host_info in self._start_topology}
11571157
current_topology_copy = self._current_topology
11581158
self._all_topology_changed = (
1159-
current_topology_copy and
1160-
start_topology_hosts and
1161-
all(host_info.host not in start_topology_hosts for host_info in current_topology_copy))
1159+
current_topology_copy and
1160+
start_topology_hosts and
1161+
all(host_info.host not in start_topology_hosts for host_info in current_topology_copy))
11621162

11631163
def _has_all_start_topology_ip_changed(self) -> bool:
11641164
if not self._start_topology:
@@ -1429,7 +1429,7 @@ def _update_corresponding_hosts(self):
14291429
(green_host for green_host in green_hosts
14301430
if self._rds_utils.is_rds_custom_cluster_dns(green_host)
14311431
and custom_cluster_name == self._rds_utils.remove_green_instance_prefix(
1432-
self._rds_utils.get_cluster_id(green_host))),
1432+
self._rds_utils.get_cluster_id(green_host))),
14331433
None
14341434
)
14351435

aws_advanced_python_wrapper/custom_endpoint_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def close(self):
222222
CustomEndpointMonitor._custom_endpoint_info_cache.remove(self._custom_endpoint_host_info.host)
223223
self._stop_event.set()
224224

225+
225226
class CustomEndpointPlugin(Plugin):
226227
"""
227228
A plugin that analyzes custom endpoints for custom endpoint information and custom endpoint changes, such as adding

aws_advanced_python_wrapper/host_monitoring_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ class MonitoringContext:
207207
This contains each connection's criteria for whether a server should be considered unhealthy.
208208
The context is shared between the main thread and the monitor thread.
209209
"""
210+
210211
def __init__(
211212
self,
212213
monitor: Monitor,

aws_advanced_python_wrapper/host_monitoring_v2_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def _update_host_health_status(
415415

416416
invalid_host_duration_ns = status_check_end_ns - self._invalid_host_start_time_ns
417417
max_invalid_host_duration_ns = (
418-
self._failure_detection_interval_ns * max(0, self._failure_detection_count - 1))
418+
self._failure_detection_interval_ns * max(0, self._failure_detection_count - 1))
419419

420420
if invalid_host_duration_ns >= max_invalid_host_duration_ns:
421421
logger.debug("HostMonitorV2.HostDead", self._host_info.host)

aws_advanced_python_wrapper/tortoise/__init__.py renamed to aws_advanced_python_wrapper/tortoise_orm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def cast_to_bool(value):
2626

2727
# Register AWS MySQL backend
2828
DB_LOOKUP["aws-mysql"] = {
29-
"engine": "aws_advanced_python_wrapper.tortoise.backends.mysql",
29+
"engine": "aws_advanced_python_wrapper.tortoise_orm.backends.mysql",
3030
"vmap": {
3131
"path": "database",
3232
"hostname": "host",

aws_advanced_python_wrapper/tortoise/async_support/__init__.py renamed to aws_advanced_python_wrapper/tortoise_orm/async_support/__init__.py

File renamed without changes.

0 commit comments

Comments
 (0)