Skip to content

Commit 2767bd1

Browse files
committed
Fix linter
1 parent 072dd08 commit 2767bd1

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

dissect/target/filesystems/tar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
NotASymlinkError,
1414
)
1515
from dissect.target.filesystem import (
16-
DirEntry,
1716
Filesystem,
1817
FilesystemEntry,
1918
VirtualDirectory,

dissect/target/helpers/compat/path_314.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
from __future__ import annotations
2323

2424
import posixpath
25-
import sys
26-
from glob import _GlobberBase, _no_recurse_symlinks, _PathGlobber
25+
from glob import _no_recurse_symlinks, _PathGlobber
2726
from pathlib import Path, PurePath, UnsupportedOperation
2827
from pathlib._os import DirEntryInfo, _PosixPathInfo
29-
from pathlib.types import PathInfo, _ReadablePath
28+
from pathlib.types import _ReadablePath
3029
from stat import S_ISDIR, S_ISLNK, S_ISREG
3130
from typing import IO, TYPE_CHECKING, ClassVar
3231

@@ -381,13 +380,13 @@ def resolve(self, strict: bool = False) -> Self:
381380
raise
382381
return p
383382

384-
def owner(self, *, follow_symlinks=True) -> str:
383+
def owner(self, *, follow_symlinks: bool = True) -> str:
385384
"""
386385
Return the login name of the file owner.
387386
"""
388387
raise UnsupportedOperation(self._unsupported_msg("owner()"))
389388

390-
def group(self, *, follow_symlinks=True) -> str:
389+
def group(self, *, follow_symlinks: bool = True) -> str:
391390
"""
392391
Return the group name of the file gid.
393392
"""
@@ -479,7 +478,7 @@ def copy_into(self, target_dir: str, **kwargs) -> Self:
479478
"""
480479
raise UnsupportedOperation(self._unsupported_msg("copy_into()"))
481480

482-
def _copy_from(self, source: Path, follow_symlinks: bool = True, preserve_metadata: bool = False):
481+
def _copy_from(self, source: Path, follow_symlinks: bool = True, preserve_metadata: bool = False) -> None:
483482
"""
484483
Recursively copy the given path to this path.
485484
"""

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependency_groups = lint
5353
commands =
5454
ruff check dissect tests
5555
ruff format --check dissect tests
56-
vermin -t=3.10- --no-tips --lint dissect tests
56+
vermin -t=3.10- --no-tips --lint --exclude-regex 'path_\d+\.py' dissect tests
5757

5858
[testenv:docs-build]
5959
allowlist_externals = make

0 commit comments

Comments
 (0)