Skip to content

Commit 590aba5

Browse files
lint fixes
1 parent 929cc22 commit 590aba5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/eligibility_signposting_api/logging/logs_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def wrapper(event: LambdaEvent, context: LambdaContext) -> dict[str, Any] | None
3232
class EnrichedJsonFormatter(JsonFormatter):
3333
def add_fields(
3434
self,
35-
log_record: dict[str, Any],
35+
log_data: dict[str, Any],
3636
record: logging.LogRecord,
3737
message_dict: dict[str, Any],
3838
) -> None:
39-
log_record["request_id"] = request_id_context_var.get() or "-"
40-
super().add_fields(log_record, record, message_dict)
39+
log_data["request_id"] = request_id_context_var.get() or "-"
40+
super().add_fields(log_data, record, message_dict)
4141

4242

4343
def init_logging(quieten: Sequence[str] = ("asyncio", "botocore", "boto3", "mangum", "urllib3")) -> None:

src/eligibility_signposting_api/model/campaign_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class IterationRule(BaseModel):
158158
model_config = {"populate_by_name": True, "extra": "ignore"}
159159

160160
@field_validator("rule_stop", mode="before")
161-
def parse_yn_to_bool(cls, v: str | bool) -> bool: # noqa: N805
161+
def parse_yn_to_bool(cls, v: str | bool) -> bool: # noqa: N805, FBT001
162162
if isinstance(v, str):
163163
return v.upper() == "Y"
164164
return v

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def iam_role(iam_client: BaseClient) -> Generator[str]:
228228

229229
@pytest.fixture(scope="session")
230230
def lambda_zip() -> Path:
231-
build_result = subprocess.run(["make", "build"], capture_output=True, text=True, check=False) # noqa: S603, S607
231+
build_result = subprocess.run(["make", "build"], capture_output=True, text=True, check=False) # noqa: S607
232232
assert build_result.returncode == 0, f"'make build' failed: {build_result.stderr}"
233233
return Path("dist/lambda.zip")
234234

0 commit comments

Comments
 (0)