Skip to content

Commit c21d096

Browse files
committed
Switch to Ruff for linting
1 parent caa2f31 commit c21d096

File tree

7 files changed

+2
-136
lines changed

7 files changed

+2
-136
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ MANIFEST
6767
.project
6868
.pydevproject
6969
.python-version
70-
pylint.txt
7170
*.swp
72-
violations.pyflakes.txt
7371

7472
/t.py
7573
/test*.py

minfraud/models.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
# pylint:disable=too-many-lines,too-many-instance-attributes,too-many-locals
65
from typing import TYPE_CHECKING
76

87
import geoip2.models
@@ -232,7 +231,6 @@ def __init__(
232231
self,
233232
*,
234233
confidence: float | None = None,
235-
# pylint:disable=redefined-builtin
236234
id: str | None = None,
237235
last_seen: str | None = None,
238236
local_time: str | None = None,
@@ -382,7 +380,6 @@ def __init__(
382380
is_issued_in_billing_address_country: bool | None = None,
383381
is_prepaid: bool | None = None,
384382
is_virtual: bool | None = None,
385-
# pylint:disable=redefined-builtin
386383
type: str | None = None, # noqa: A002
387384
) -> None:
388385
"""Initialize a CreditCard instance."""
@@ -752,7 +749,7 @@ class Reason(_Serializable):
752749
753750
See the `risk reasons documentation <https://dev.maxmind.com/minfraud/api-documentation/responses/#schema--response--risk-score-reason--multiplier-reason>`_
754751
for the current list of reason codes.
755-
""" # pylint:disable=line-too-long
752+
"""
756753

757754
code: str | None
758755
"""This value is a machine-readable code identifying the reason.
@@ -953,7 +950,6 @@ def __init__(
953950
funds_remaining: float,
954951
device: dict | None = None,
955952
email: dict | None = None,
956-
# pylint:disable=redefined-builtin
957953
id: str,
958954
ip_address: dict | None = None,
959955
queries_remaining: int,
@@ -1062,7 +1058,6 @@ def __init__(
10621058
disposition: dict | None = None,
10631059
email: dict | None = None,
10641060
funds_remaining: float,
1065-
# pylint:disable=redefined-builtin
10661061
id: str,
10671062
ip_address: dict | None = None,
10681063
queries_remaining: int,
@@ -1130,7 +1125,6 @@ def __init__(
11301125
*,
11311126
disposition: dict | None = None,
11321127
funds_remaining: float,
1133-
# pylint:disable=redefined-builtin
11341128
id: str,
11351129
ip_address: dict | None = None,
11361130
queries_remaining: int,

minfraud/validation.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
)
3030
from voluptuous.error import UrlInvalid
3131

32-
# Pylint doesn't like the private function type naming for the callable
33-
# objects below. Given the consistent use of them, the current names seem
34-
# preferable to blindly following pylint.
35-
#
36-
# pylint: disable=invalid-name,undefined-variable
37-
3832
_any_number = Any(float, int, Decimal)
3933

4034
_custom_input_key = All(str, Match(r"^[a-z0-9_]{1,25}$"))

minfraud/webservice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
_SCHEME = "https"
4343

4444

45-
# pylint: disable=too-many-instance-attributes
4645
class BaseClient:
4746
"""Base class for minFraud clients."""
4847

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ dev = [
3838
"pytest-httpserver>=1.0.10",
3939
]
4040
lint = [
41-
"flake8>=7.2.0",
4241
"mypy>=1.15.0",
43-
"pylint>=3.3.6",
4442
"ruff>=0.11.6",
4543
"types-requests>=2.32.0.20250328",
4644
]
@@ -122,9 +120,8 @@ dependency_groups = [
122120
"lint",
123121
]
124122
commands = [
125-
["flake8", "minfraud"],
126123
["mypy", "minfraud", "tests"],
127-
["pylint", "minfraud"],
124+
["ruff", "check"],
128125
["ruff", "format", "--check", "--diff", "."],
129126
]
130127

setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

uv.lock

Lines changed: 0 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)