Skip to content

Commit 87459d3

Browse files
committed
Linting
1 parent 7a10de8 commit 87459d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

domdf_python_tools/versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __str__(self) -> str:
6262
Return version as a string.
6363
"""
6464

65-
return "v" + ".".join(str(x) for x in self)
65+
return "v" + ".".join(str(x) for x in self) # pylint: disable=not-an-iterable
6666

6767
def __float__(self) -> float:
6868
"""

tests/test_versions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_iter_string(string, expects):
2525

2626

2727
@pytest.mark.parametrize(
28-
"float, expects",
28+
"float_, expects",
2929
[
3030
(1, (1, )),
3131
(1.0, (1, 0)),
@@ -39,8 +39,8 @@ def test_iter_string(string, expects):
3939
("15", (15, )),
4040
]
4141
)
42-
def test_iter_float(float, expects):
43-
assert tuple(_iter_float(float)) == expects
42+
def test_iter_float(float_, expects):
43+
assert tuple(_iter_float(float_)) == expects
4444

4545

4646
@pytest.mark.parametrize(
@@ -486,7 +486,7 @@ def test_int(version, expects):
486486
]
487487
)
488488
def test_pickle(obj):
489-
assert pickle.loads(pickle.dumps(obj)) == obj
489+
assert pickle.loads(pickle.dumps(obj)) == obj # nosec: B301
490490

491491

492492
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)