Skip to content

Commit

Permalink
Add isort to flake8 linting (#11)
Browse files Browse the repository at this point in the history
(DIS-1789)
  • Loading branch information
pyrco committed Feb 7, 2023
1 parent ab8b56c commit 58b8f4d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
7 changes: 5 additions & 2 deletions dissect/regf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from dissect.regf.exceptions import Error, RegistryKeyNotFoundError, RegistryValueNotFoundError
from dissect.regf.exceptions import (
Error,
RegistryKeyNotFoundError,
RegistryValueNotFoundError,
)
from dissect.regf.regf import RegistryHive


__all__ = [
"RegistryHive",
"Error",
Expand Down
1 change: 0 additions & 1 deletion dissect/regf/c_regf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from dissect import cstruct


c_regf_def = """
struct REGF_HEADER {
uint32 signature;
Expand Down
14 changes: 8 additions & 6 deletions dissect/regf/regf.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import logging
import os
import sys
import struct
import logging
import sys
from functools import lru_cache

from io import BytesIO

from dissect.util.ts import wintimestamp

from dissect.regf.c_regf import (
c_regf,
REG_BINARY,
REG_DWORD,
REG_DWORD_BIG_ENDIAN,
Expand All @@ -20,9 +18,13 @@
REG_QWORD,
REG_RESOURCE_REQUIREMENTS_LIST,
REG_SZ,
c_regf,
)
from dissect.regf.exceptions import (
Error,
RegistryKeyNotFoundError,
RegistryValueNotFoundError,
)
from dissect.regf.exceptions import Error, RegistryKeyNotFoundError, RegistryValueNotFoundError


log = logging.getLogger(__name__)
log.setLevel(os.getenv("DISSECT_LOG_REGF", "CRITICAL"))
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ deps =
black==23.1.0
flake8
flake8-black
flake8-isort
vermin
commands =
flake8 dissect examples tests setup.py
Expand Down

0 comments on commit 58b8f4d

Please sign in to comment.