Skip to content

Commit

Permalink
Add isort to flake8 linting (#10)
Browse files Browse the repository at this point in the history
(DIS-1789)
  • Loading branch information
pyrco authored Feb 7, 2023
1 parent ab0d619 commit 98d8934
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
1 change: 0 additions & 1 deletion dissect/fat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from dissect.fat.exfat import ExFAT
from dissect.fat.fat import FATFS


__all__ = [
"ExFAT",
"FATFS",
Expand Down
6 changes: 3 additions & 3 deletions dissect/fat/exfat.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import os
import logging
import os
import struct
from collections import OrderedDict
from itertools import groupby
from operator import itemgetter
from collections import OrderedDict

from dissect.util.stream import RangeStream, RunlistStream

from dissect.fat.c_exfat import (
c_exfat,
BITMAP_ENTRY,
DIR_ENTRY_SIZE,
EOC,
Expand All @@ -17,6 +16,7 @@
NO_VOLUME_LABEL_ENTRY,
UPCASE_TABLE_ENTRY,
VOLUME_LABEL_ENTRY,
c_exfat,
)
from dissect.fat.exceptions import InvalidHeaderMagic

Expand Down
26 changes: 13 additions & 13 deletions dissect/fat/fat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
# - https://github.com/nathanhi/pyfatfs
# - https://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/fatgen103.doc

import struct
import datetime
import struct
from functools import lru_cache, reduce
from operator import itemgetter
from functools import reduce, lru_cache

from dissect.util.stream import RangeStream, RunlistStream
from dissect.util.ts import dostimestamp

from dissect.fat.c_fat import (
c_fat,
Fattype,
FAT12_EOC,
BAD_CLUSTER,
FREE_CLUSTER,
VALID_BPB_MEDIA,
DATA_CLUSTER_MIN,
DATA_CLUSTER_MAX,
END_OF_CLUSTER_MIN,
DATA_CLUSTER_MIN,
END_OF_CLUSTER_MAX,
END_OF_CLUSTER_MIN,
FAT12_EOC,
FREE_CLUSTER,
VALID_BPB_MEDIA,
Fattype,
c_fat,
)
from dissect.fat.exceptions import (
InvalidBPB,
BadClusterError,
FreeClusterError,
EmptyDirectoryError,
FileNotFoundError,
FreeClusterError,
InvalidBPB,
InvalidDirectoryError,
NotADirectoryError,
EmptyDirectoryError,
LastEmptyDirectoryError,
NotADirectoryError,
)


Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

import pytest


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 tests setup.py
Expand Down

0 comments on commit 98d8934

Please sign in to comment.