Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ jobs:
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
flag-name: Unittests-${{ matrix.os }}-${{ matrix.python-version }}
flag-name: Unittests-${{ matrix.os }}-${{ matrix.env }}
parallel: true
path-to-lcov: ./coverage.lcov

coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions can/broadcastmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class _Pywin32Event:

class _Pywin32:
def __init__(self) -> None:
import pywintypes # pylint: disable=import-outside-toplevel,import-error
import win32event # pylint: disable=import-outside-toplevel,import-error
import pywintypes # noqa: PLC0415 # pylint: disable=import-outside-toplevel,import-error
import win32event # noqa: PLC0415 # pylint: disable=import-outside-toplevel,import-error

self.pywintypes = pywintypes
self.win32event = win32event
Expand Down
5 changes: 5 additions & 0 deletions can/interfaces/systec/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class CanMsg(Structure):
DWORD,
), # Receive time stamp in ms (for transmit messages no meaning)
]
__hash__ = Structure.__hash__

def __init__(
self, id_=0, frame_format=MsgFrameFormat.MSG_FF_STD, data=None, dlc=None
Expand Down Expand Up @@ -116,6 +117,7 @@ class Status(Structure):
("m_wCanStatus", WORD), # CAN error status (see enum :class:`CanStatus`)
("m_wUsbStatus", WORD), # USB error status (see enum :class:`UsbStatus`)
]
__hash__ = Structure.__hash__

def __eq__(self, other):
if not isinstance(other, Status):
Expand Down Expand Up @@ -171,6 +173,7 @@ class InitCanParam(Structure):
WORD,
), # number of transmit buffer entries (default is 4096)
]
__hash__ = Structure.__hash__

def __init__(
self, mode, BTR, OCR, AMR, ACR, baudrate, rx_buffer_entries, tx_buffer_entries
Expand Down Expand Up @@ -277,6 +280,7 @@ class HardwareInfoEx(Structure):
("m_dwUniqueId3", DWORD),
("m_dwFlags", DWORD), # additional flags
]
__hash__ = Structure.__hash__

def __init__(self):
super().__init__(sizeof(HardwareInfoEx))
Expand Down Expand Up @@ -389,6 +393,7 @@ class ChannelInfo(Structure):
WORD,
), # CAN status (same as received by method :meth:`UcanServer.get_status`)
]
__hash__ = Structure.__hash__

def __init__(self):
super().__init__(sizeof(ChannelInfo))
Expand Down
19 changes: 10 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,19 @@ docs = [
]
lint = [
"pylint==3.3.*",
"ruff==0.11.12",
"ruff==0.12.5",
"black==25.1.*",
"mypy==1.16.*",
"mypy==1.17.*",
]
test = [
"pytest==8.3.*",
"pytest-timeout==2.1.*",
"coveralls==3.3.1",
"pytest-cov==4.0.0",
"coverage==6.5.0",
"hypothesis~=6.35.0",
"parameterized~=0.8",
"pytest==8.4.*",
"pytest-timeout==2.4.*",
"pytest-modern==0.7.*;platform_system!='Windows'",
"coveralls==4.0.*",
"pytest-cov==6.2.*",
"coverage==7.10.*",
"hypothesis==6.136.*",
"parameterized==0.9.*",
]
dev = [
{include-group = "docs"},
Expand Down
Loading