-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement support for CAN-FD and container frames #6
Implement support for CAN-FD and container frames #6
Conversation
dbcfeederlib/canreader.py
Outdated
decode = message_def.decode(bytes(data), allow_truncated=True, decode_containers=True) | ||
except Exception as e: | ||
log.warning("Error processing CAN message with frame ID: %#x", frame_id, exc_info=True) | ||
log.warning("Error: ", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line gives a linter error (i think), duplicate as we already have the line above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how can this be reproduced locally? on my machine, flake8
passes fine:
$ flake8 .
$
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not reported by flake8, it is pylint
that we run from https://github.com/eclipse-kuksa/kuksa-can-provider/blob/main/.github/workflows/can-provider.yml#L122
Installed in CI by
pip3 install --no-cache-dir -r requirements.txt -r requirements-dev.txt
This is how I run it locally:
erik@debian4:~/kuksa-can-provider$ pylint -E dbcfeeder.py dbcfeederlib test
************* Module dbcfeederlib.canreader
dbcfeederlib/canreader.py:98:16: E1205: Too many arguments for logging format string (logging-too-many-args)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, should be fixed now: 6f2151b
Thanks for moving the PR. The eclipsefdn/eca check fails, in one of your commits Maybe it is possibly for you to edit that commit so that it gets the same author as other commits
|
c3d38eb
to
02932e9
Compare
oops. git configuration error. fixed... |
The remaining pre-commit error might be a false positive. I think I have seen a similar problem in another repo and will update dependencies and retry |
6f2151b
to
330c717
Compare
yes, seems like flake8 does plays style police even within strings. (this is a bit weird IMO, even more so considering that the flake8 on my computer does not complain about it.) anyway, I've added a space before the |
Signed-off-by: Alexander Walz <[email protected]> Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Alexander Walz <[email protected]> Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Alexander Walz <[email protected]> Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Alexander Walz <[email protected]> Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Andreas Lauser <[email protected]> Signed-off-by: Alexander Walz <[email protected]>
330c717
to
e639913
Compare
this is a direct carryover of the same PR from the old repository. All discussions for the original PR still apply.
Andreas Lauser <[email protected]>, on behalf of MBition GmbH.
Provider Information