Skip to content

Commit

Permalink
custom confgiuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mdabrowski1990 committed May 16, 2024
1 parent 3d166e3 commit 7e8b183
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 44 deletions.
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,9 @@ asyncio_mode = "strict"


[tool.isort]
profile = "hug"
src_paths = ["uds", "tests"]
src_paths = ["uds", "tests"]
line_length = 120
use_parentheses = true
include_trailing_comma = true
force_grid_wrap = 0
multi_line_output = 3
10 changes: 2 additions & 8 deletions uds/can/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
from .first_frame import CanFirstFrameHandler
from .flow_control import CanFlowControlHandler, CanFlowStatus, CanSTminTranslator
from .frame_fields import DEFAULT_FILLER_BYTE, CanDlcHandler, CanIdHandler
from .mixed_addressing_information import (
Mixed11BitCanAddressingInformation,
Mixed29BitCanAddressingInformation,
)
from .normal_addressing_information import (
Normal11BitCanAddressingInformation,
NormalFixedCanAddressingInformation,
)
from .mixed_addressing_information import Mixed11BitCanAddressingInformation, Mixed29BitCanAddressingInformation
from .normal_addressing_information import Normal11BitCanAddressingInformation, NormalFixedCanAddressingInformation
from .single_frame import CanSingleFrameHandler
10 changes: 2 additions & 8 deletions uds/can/addressing_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@
from .addressing_format import CanAddressingFormat
from .extended_addressing_information import ExtendedCanAddressingInformation
from .frame_fields import CanIdHandler
from .mixed_addressing_information import (
Mixed11BitCanAddressingInformation,
Mixed29BitCanAddressingInformation,
)
from .normal_addressing_information import (
Normal11BitCanAddressingInformation,
NormalFixedCanAddressingInformation,
)
from .mixed_addressing_information import Mixed11BitCanAddressingInformation, Mixed29BitCanAddressingInformation
from .normal_addressing_information import Normal11BitCanAddressingInformation, NormalFixedCanAddressingInformation


class CanAddressingInformation:
Expand Down
8 changes: 1 addition & 7 deletions uds/message/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@
"""

from .nrc import NRC
from .service_identifiers import (
ALL_REQUEST_SIDS,
ALL_RESPONSE_SIDS,
RequestSID,
ResponseSID,
UnrecognizedSIDWarning,
)
from .service_identifiers import ALL_REQUEST_SIDS, ALL_RESPONSE_SIDS, RequestSID, ResponseSID, UnrecognizedSIDWarning
from .uds_message import AbstractUdsMessageContainer, UdsMessage, UdsMessageRecord
8 changes: 1 addition & 7 deletions uds/message/uds_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@

from uds.packet import AbstractUdsPacketRecord, PacketsRecordsSequence, PacketsRecordsTuple
from uds.transmission_attributes import AddressingType, TransmissionDirection
from uds.utilities import (
RawBytesAlias,
RawBytesListAlias,
RawBytesTupleAlias,
ReassignmentError,
validate_raw_bytes,
)
from uds.utilities import RawBytesAlias, RawBytesListAlias, RawBytesTupleAlias, ReassignmentError, validate_raw_bytes


class AbstractUdsMessageContainer(ABC):
Expand Down
7 changes: 1 addition & 6 deletions uds/packet/can_packet_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@

from aenum import unique

from uds.can import (
CanConsecutiveFrameHandler,
CanFirstFrameHandler,
CanFlowControlHandler,
CanSingleFrameHandler,
)
from uds.can import CanConsecutiveFrameHandler, CanFirstFrameHandler, CanFlowControlHandler, CanSingleFrameHandler

from .abstract_packet_type import AbstractUdsPacketType

Expand Down
7 changes: 1 addition & 6 deletions uds/utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
validate_raw_byte,
validate_raw_bytes,
)
from .custom_exceptions import (
AmbiguityError,
InconsistentArgumentsError,
ReassignmentError,
UnusedArgumentError,
)
from .custom_exceptions import AmbiguityError, InconsistentArgumentsError, ReassignmentError, UnusedArgumentError
from .custom_warnings import UnusedArgumentWarning, ValueWarning
from .enums import ByteEnum, ExtendableEnum, NibbleEnum, ValidatedEnum

0 comments on commit 7e8b183

Please sign in to comment.