8000 Lint · domdfcoding/domdf_python_tools@518b685 · GitHub
[go: up one dir, main page]

Skip to content

Commit 518b685

Browse files
committed
Lint
1 parent 05c5052 commit 518b685

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

domdf_python_tools/dates.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ def is_bst(the_date: Union[time.struct_time, datetime.date]) -> bool:
324324
"""
325325
Calculates whether the given day falls within British Summer Time.
326326
327-
This function should also be applicable to other timezones which change to summer time on the same date (e.g. Central European Summer Time).
327+
This function should also be applicable to other timezones
328+
which change to summer time on the same date (e.g. Central European Summer Time).
328329
329330
.. note::
330331

domdf_python_tools/pagesizes/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#
4040

4141
# this package
42-
from .classes import *
43-
from .sizes import *
44-
from .units import *
45-
from .utils import *
42+
from .classes import * # noqa: F401
43+
from .sizes import * # noqa: F401
44+
from .units import * # noqa: F401
45+
from .utils import * # noqa: F401

domdf_python_tools/stringlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def splitlines(string: str) -> List[Tuple[str, str]]:
513513
while i < str_len:
514514

515515
# Find a line and append it
516-
while i < str_len and not string[i] in "\n\r":
516+
while i < str_len and string[i] not in "\n\r":
517517
i += 1
518518

519519
# Skip the line break reading CRLF as one line break

tests/test_namedlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class NamedListTest:
8282
str_out = "ShoppingList['egg and bacon', 'egg sausage and bacon', 'egg and spam', 'egg bacon and spam']"
8383
cls_str: str
8484

85-
def test(self, capsys):
85+
def test_(self, capsys):
8686
assert isinstance(self.shopping_list, UserList)
8787
assert self.shopping_list[0] == "egg and bacon"
8888

tests/test_pagesizes/test_pagesizes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_convert_size(unit: Unit):
178178
pytest.param(2, 5, 10, id="not isinstance(from_, Unit)"),
179179
],
180180
)
181-
def test_convert_from(value: List[int], unit, expects: Tuple[float, ...]):
181+
def test_convert_from(value: List[int], unit: Unit, expects: Tuple[float, ...]):
182182
assert convert_from(value, unit) == expects
183183

184184

0 commit comments

Comments
 (0)
0