Skip to content

Commit cec14ed

Browse files
committed
Lint
1 parent b5b770c commit cec14ed

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

flake8_encodings/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ def check_open_encoding(self, node: ast.Call) -> None:
125125
This function checks :func:`open`, :func:`builtins.open <open>` and :func:`io.open`.
126126
127127
.. versionchanged:: 0.2.0 Renamed from ``check_encoding``
128+
129+
:param node:
128130
"""
129131

130132
kwargs = kwargs_from_node(node, open)
@@ -231,6 +233,8 @@ def check_configparser_encoding(self, node: ast.Call) -> None:
231233
This function checks :meth:`configparser.ConfigParser.read`.
232234
233235
.. versionadded:: 0.2.0
236+
237+
:param node:
234238
"""
235239

236240
kwargs = kwargs_from_node(node, _configparser_read)
@@ -250,6 +254,9 @@ def check_pathlib_encoding(self, node: ast.Call, method_name: str) -> None:
250254
and :meth:`pathlib.Path.write_text`.
251255
252256
.. versionadded:: 0.3.0
257+
258+
:param node:
259+
:param method_name:
253260
"""
254261

255262
function: Callable
@@ -349,6 +356,7 @@ class Plugin(flake8_helper.Plugin[Visitor]):
349356
A Flake8 plugin to identify incorrect use of encodings.
350357
351358
:param tree: The abstract syntax tree (AST) to check.
359+
:param filename:
352360
"""
353361

354362
name: str = __name__

tests/test_visitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def test_visitor_with_jedi(tmp_pathplus: PathPlus, advanced_data_regression: Adv
3636

3737

3838
def test_visitor_with_jedi_visit_method(
39-
tmp_pathplus: PathPlus, advanced_data_regression: AdvancedDataRegressionFixture
39+
tmp_pathplus: PathPlus,
40+
advanced_data_regression: AdvancedDataRegressionFixture,
4041
):
4142
pytest.importorskip("jedi")
4243

0 commit comments

Comments
 (0)