Skip to content

Commit 1605b2d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 290c04e commit 1605b2d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pylint_ml/checkers/pandas/pandas_dtype_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class PandasDtypeChecker(BaseChecker):
1010
"W8117": (
1111
"Specify 'dtype' when using '%s' for better performance and data integrity.",
1212
"pandas-dtype-param",
13-
"It's recommended to explicitly specify the 'dtype' parameter in pandas read functions."
13+
"It's recommended to explicitly specify the 'dtype' parameter in pandas read functions.",
1414
),
1515
}
1616

@@ -24,4 +24,4 @@ def visit_call(self, node: nodes.Call) -> None:
2424
if module_name == "pd" and func_name in {"read_csv", "read_excel", "read_table"}:
2525
# Check if dtype is specified
2626
if not any(kw.arg == "dtype" for kw in node.keywords):
27-
self.add_message("pandas-dtype-param", node=node, confidence=HIGH)
27+
self.add_message("pandas-dtype-param", node=node, confidence=HIGH)

tests/checkers/test_pandas/test_pandas_dtype_param.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def test_dtype_missing(self):
3232
dtype_call = node.value
3333

3434
with self.assertAddsMessages(
35-
pylint.testutils.MessageTest(
36-
msg_id="pandas-dtype-param",
37-
confidence=HIGH,
38-
node=dtype_call,
39-
),
40-
ignore_position=True,
35+
pylint.testutils.MessageTest(
36+
msg_id="pandas-dtype-param",
37+
confidence=HIGH,
38+
node=dtype_call,
39+
),
40+
ignore_position=True,
4141
):
4242
self.checker.visit_call(dtype_call)

0 commit comments

Comments
 (0)