Skip to content

Commit c4050ad

Browse files
Second try on getting 'locust_tests' to pass ruff checks and spawning 'ruff' for 'sftp_outbound_transfer' without failure.
1 parent d40c3ce commit c4050ad

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

apps/utils/locust_tests/high_volume_suite.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,10 @@ def get_tasks(tags: set[str], exclude_tags: set[str]) -> list[Any]:
499499
class_members = inspect.getmembers(sys.modules[__name__], inspect.isclass)
500500
potential_tasks = list(
501501
filter(
502-
lambda potential_task: hasattr(potential_task[1], "tasks")
503-
and issubclass(potential_task[1], HighVolumeTaskSet),
502+
lambda potential_task: (
503+
hasattr(potential_task[1], "tasks")
504+
and issubclass(potential_task[1], HighVolumeTaskSet)
505+
),
504506
class_members,
505507
)
506508
)

apps/utils/locust_tests/high_volume_suite_post.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,10 @@ def get_tasks(tags: set[str], exclude_tags: set[str]) -> list[Any]:
401401
class_members = inspect.getmembers(sys.modules[__name__], inspect.isclass)
402402
potential_tasks = list(
403403
filter(
404-
lambda potential_task: hasattr(potential_task[1], "tasks")
405-
and issubclass(potential_task[1], HighVolumeTaskSet),
404+
lambda potential_task: (
405+
hasattr(potential_task[1], "tasks")
406+
and issubclass(potential_task[1], HighVolumeTaskSet)
407+
),
406408
class_members,
407409
)
408410
)
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[project]
22
name = "sftp-outbound-transfer"
33
version = "1.0.0"
4-
dependencies = ["aws-lambda-powertools[all]", "paramiko", "boto3"]
4+
dependencies = ["aws-lambda-powertools[all]", "paramiko", "boto3", "pydantic"]
55

66
# Part of apps workspace inherits from ../../../../../apps/pyproject.toml
77
# Per-file ignores defined in apps/pyproject.toml
8+
9+
[dependency-groups]
10+
dev = ["pytest", "pyright", "ruff", "boto3-stubs[sns,ssm]"]

0 commit comments

Comments
 (0)