Skip to content

Commit b56c345

Browse files
committed
Update ruff ignores
1 parent 1703c46 commit b56c345

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

minfraud/models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ def __init__(
322322
self,
323323
domain: dict | None = None,
324324
first_seen: str | None = None,
325-
is_disposable: bool | None = None,
326-
is_free: bool | None = None,
327-
is_high_risk: bool | None = None,
325+
is_disposable: bool | None = None, # noqa: FBT001
326+
is_free: bool | None = None, # noqa: FBT001
327+
is_high_risk: bool | None = None, # noqa: FBT001
328328
) -> None:
329329
"""Initialize an Email instance."""
330330
self.domain = EmailDomain(**(domain or {}))
@@ -376,10 +376,10 @@ def __init__(
376376
issuer: dict | None = None,
377377
country: str | None = None,
378378
brand: str | None = None,
379-
is_business: bool | None = None,
380-
is_issued_in_billing_address_country: bool | None = None,
381-
is_prepaid: bool | None = None,
382-
is_virtual: bool | None = None,
379+
is_business: bool | None = None, # noqa: FBT001
380+
is_issued_in_billing_address_country: bool | None = None, # noqa: FBT001
381+
is_prepaid: bool | None = None, # noqa: FBT001
382+
is_virtual: bool | None = None, # noqa: FBT001
383383
type: str | None = None, # noqa: A002
384384
) -> None:
385385
"""Initialize a CreditCard instance."""

minfraud/request.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def _clean_domain(domain: str) -> str:
354354

355355
idx = domain.rfind(".")
356356
if idx != -1:
357-
# flake8: noqa: E203
358357
tld = domain[idx + 1 :]
359358
if typo_tld := _TYPO_TLDS.get(tld):
360359
domain = domain[:idx] + "." + typo_tld
@@ -370,7 +369,6 @@ def _clean_email(address: str) -> tuple[str | None, str | None]:
370369
if at_idx == -1:
371370
return None, None
372371

373-
# flake8: noqa: E203
374372
domain = _clean_domain(address[at_idx + 1 :])
375373
local_part = address[:at_idx]
376374

0 commit comments

Comments
 (0)