Skip to content

Commit

Permalink
Add isort to flake8 linting (#20)
Browse files Browse the repository at this point in the history
(DIS-1789)
  • Loading branch information
pyrco authored Feb 7, 2023
1 parent 395dcc2 commit 0322673
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dissect/util/compression/lznt1.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Reference: https://github.com/google/rekall/blob/master/rekall-core/rekall/plugins/filesystems/lznt1.py
import array
import io
import struct
import array
from typing import BinaryIO, Union


Expand Down
1 change: 0 additions & 1 deletion dissect/util/compression/lzxpress_huffman.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from collections import namedtuple
from typing import BinaryIO, Optional, Union


Symbol = namedtuple("Symbol", ["length", "symbol"])


Expand Down
5 changes: 2 additions & 3 deletions dissect/util/plist.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import uuid
import plistlib
import uuid
from collections import UserDict

from dissect.util.ts import cocoatimestamp

from collections import UserDict


class NSKeyedArchiver:
def __init__(self, fh):
Expand Down
1 change: 0 additions & 1 deletion dissect/util/ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from platform import system
from typing import Dict


if system().lower() in ("windows", "emscripten"):
_EPOCH = datetime(1970, 1, 1, tzinfo=timezone.utc)

Expand Down
2 changes: 1 addition & 1 deletion dissect/util/xmemoryview.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import sys
import struct
import sys
from typing import Any, Iterator, Union


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from setuptools import setup, find_packages
from setuptools import find_packages, setup

setup(
name="dissect.util",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plist.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import datetime
import plistlib
import sys
import uuid
from unittest.mock import patch

Expand Down
1 change: 0 additions & 1 deletion tests/test_sid.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from dissect.util import sid


testdata = [
(b"\x01\x00\x00\x00\x00\x00\x00\x00", "S-1-0"),
(b"\x01\x01\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00", "S-1-1-0"),
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 0322673

Please sign in to comment.