Skip to content

Commit 35d58ab

Browse files
committed
Linting.
1 parent bccc966 commit 35d58ab

File tree

5 files changed

+0
-12
lines changed

5 files changed

+0
-12
lines changed

domdf_python_tools/dates.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"check_date",
4646
]
4747

48-
4948
try:
5049

5150
# 3rd party
@@ -95,10 +94,8 @@ def get_timezone(tz: str, date: Optional[datetime.datetime] = None) -> Optional[
9594

9695
return pytz.timezone(tz).localize(d).tzinfo
9796

98-
9997
__all__.extend(["get_utc_offset", "get_timezone"])
10098

101-
10299
except ImportError as e: # pragma: no cover
103100

104101
# stdlib

domdf_python_tools/doctools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"sphinxify_docstring",
4343
]
4444

45-
4645
F = TypeVar('F', bound=Callable[..., Any])
4746

4847

domdf_python_tools/pagesizes/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
List of common pagesizes and some tools for working with them.
66
77
This module defines a few common page sizes in points (1/72 inch).
8-
9-
To be expanded to include things like label sizes, envelope windows etc.
108
"""
119
#
1210
# Copyright © 2020 Dominic Davis-Foster <[email protected]>

domdf_python_tools/typing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
__all__ = ["PathLike", "AnyNumber", "check_membership"]
3333

34-
3534
#: Type hint for objects that represent filesystem paths.
3635
PathLike = Union[str, pathlib.Path, os.PathLike]
3736

tests/test_paths.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
def test_maybe_make():
2828
with TemporaryDirectory() as tmpdir:
29-
3029
test_dir = pathlib.Path(tmpdir) / "maybe_make"
3130

3231
assert test_dir.exists() is False
@@ -55,7 +54,6 @@ def test_maybe_make():
5554

5655
def test_maybe_make_pathplus():
5756
with TemporaryDirectory() as tmpdir:
58-
5957
test_dir = PathPlus(tmpdir) / "maybe_make"
6058

6159
assert test_dir.exists() is False
@@ -84,7 +82,6 @@ def test_maybe_make_pathplus():
8482

8583
def test_maybe_make_string():
8684
with TemporaryDirectory() as tmpdir:
87-
8885
test_dir = pathlib.Path(tmpdir) / "maybe_make"
8986

9087
assert test_dir.exists() is False
@@ -113,7 +110,6 @@ def test_maybe_make_string():
113110

114111
def test_maybe_make_parents():
115112
with TemporaryDirectory() as tmpdir:
116-
117113
test_dir = pathlib.Path(tmpdir) / "maybe_make" / "child1" / "child2"
118114

119115
assert test_dir.exists() is False
@@ -131,7 +127,6 @@ def test_maybe_make_parents():
131127

132128
def test_maybe_make_parents_pathplus():
133129
with TemporaryDirectory() as tmpdir:
134-
135130
test_dir = PathPlus(tmpdir) / "maybe_make" / "child1" / "child2"
136131

137132
assert test_dir.exists() is False

0 commit comments

Comments
 (0)