Skip to content

Commit bed0557

Browse files
committed
Linting
1 parent fd8115b commit bed0557

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

domdf_python_tools/paths.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,11 @@ class PathPlus(pathlib.Path):
307307
def __new__(cls, *args, **kwargs):
308308
if cls is PathPlus:
309309
cls = WindowsPathPlus if os.name == 'nt' else PosixPathPlus
310+
310311
self = cls._from_parts(args, init=False) # type: ignore
311312
if not self._flavour.is_supported:
312313
raise NotImplementedError(f"cannot instantiate {cls.__name__!r} on your system")
314+
313315
self._init()
314316
return self
315317

@@ -569,7 +571,8 @@ def load_json(
569571

570572

571573
class PosixPathPlus(PathPlus, pathlib.PurePosixPath):
572-
"""Path subclass for non-Windows systems.
574+
"""
575+
PathPlus subclass for non-Windows systems.
573576
574577
On a POSIX system, instantiating a PathPlus object should return an instance of this class.
575578
@@ -579,7 +582,8 @@ class PosixPathPlus(PathPlus, pathlib.PurePosixPath):
579582

580583

581584
class WindowsPathPlus(PathPlus, pathlib.PureWindowsPath):
582-
"""Path subclass for Windows systems.
585+
"""
586+
PathPlus subclass for Windows systems.
583587
584588
On a Windows system, instantiating a PathPlus object should return an instance of this class.
585589

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ changedir = {toxinidir}
114114
deps =
115115
mypy==0.782
116116
-r{toxinidir}/tests/requirements.txt
117-
commands = mypy domdf_python_tools tests
117+
commands = mypy domdf_python_tools tests {posargs}
118118

119119

120120

0 commit comments

Comments
 (0)