Skip to content

Commit 59ba41a

Browse files
committed
Linting
1 parent b4c25fe commit 59ba41a

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

domdf_python_tools/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def clear() -> None:
8080
"""
8181

8282
if os.name == "nt": # pragma: no cover (!Windows)
83-
os.system("cls")
83+
os.system("cls") # nosec: B607,B605
8484
else: # pragma: no cover (!Linux)
8585
print("\033c", end='')
8686

tests/test_paths.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
from domdf_python_tools import paths
2222
from domdf_python_tools.paths import PathPlus, clean_writer
2323

24-
# TODO: delete, write, read and append might want deprecating in favour of pathlib
25-
2624

2725
def test_maybe_make():
2826
with TemporaryDirectory() as tmpdir:

tests/test_typing.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ def test_check_membership_true(obj, type_):
4949
("abc", List[int]),
5050
(1234, Sequence[bytes]),
5151
(12.34, Set[str]),
52-
(1234, Tuple[str, float, bytes]), # todo: Position
53-
(12.34, Tuple[int, bytes, str]), # todo: Position
54-
("abc", Tuple[int, float, bytes]), # todo: Position
55-
(1234, Dict[bytes, float]), # todo: Position
56-
(12.34, Dict[int, str]), # todo: Position
52+
(1234, Tuple[str, float, bytes]),
53+
(12.34, Tuple[int, bytes, str]),
54+
("abc", Tuple[int, float, bytes]),
55+
(1234, Dict[bytes, float]),
56+
(12.34, Dict[int, str]),
5757
]
5858
)
5959
def test_check_membership_false(obj, type_):
60+
# todo: Positions for Tuple and Dict
6061
assert not check_membership(obj, type_)
6162

6263

tests/test_units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TestMul:
3131
@pytest.mark.parametrize("obj", units_zero2thousand)
3232
def test_mul_errors(self, obj):
3333
with pytest.raises(NotImplementedError, match="Multiplying a unit by another unit is not allowed."):
34-
Unit(17) * obj
34+
Unit(17) * obj # pylint: disable=expression-not-assigned
3535

3636
@pytest.mark.parametrize("obj", zero2thousand)
3737
def test_mul(self, obj: int):
@@ -41,7 +41,7 @@ def test_mul(self, obj: int):
4141
@pytest.mark.parametrize("obj", units_zero2thousand)
4242
def test_rmul_errors(self, obj):
4343
with pytest.raises(NotImplementedError, match="Multiplying a unit by another unit is not allowed."):
44-
obj * Unit(17)
44+
obj * Unit(17) # pylint: disable=expression-not-assigned
4545

4646
@pytest.mark.parametrize("obj", units_ints_zero2thousand)
4747
def test_pow_errors(self, obj):

0 commit comments

Comments
 (0)