-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add 10s timeout and restart multimon if rtl_fm crashes & fix pytest and codingstyle-failures #64
Add 10s timeout and restart multimon if rtl_fm crashes & fix pytest and codingstyle-failures #64
Conversation
@Schrolli91 Pytest passe ich auch mit an, da pep8 deprecated war |
47e2f6f
to
9363fc8
Compare
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.
Außerdem sollten wir den autom. Test noch um Py 3.9 anpassen, oder was meinst du?
test/pytest.ini
Outdated
# E402 # import not at top | ||
# E501 # line too long | ||
# pep8maxlinelength = 99 No newline at end of file | ||
# E722 # do not use bare 'except' | ||
# W504 # line break after binary operator | ||
# W605 # invalid escape sequence | ||
# flake8-max-line-length = 99 |
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.
Hier sollten wir mal klären, welche Ausnahmen wir davon wirklich ignorieren wollen.
Oder ob es Sinn macht, diese zuzulassen und mittelfristig zu beheben.
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.
Macht vermutlich sinn, die mittelfristig zu beheben, hatte die bis jetzt noch ignoriert da hier noch einige fehler anfallen, hauptsaechlich wegen den Datei-Headern.
W504 kommt in konflikt mit W503, da ist wohl irgendwas bei flake8 vehauen, oder es gibt keine "richtige" loesung.
E722 Sollten wir glaube ich moeglichst beheben, wobei der "catch all Exceptions" ja auch schon wichtig sein kann.
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.
"catch all" sollte schon nach Möglichkeit vermieden werden.
An den wenigen Stellen, wo es wirklich erwünscht ist kann man das auch mit einem FLAG direkt im Sourcecode abschalten: https://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html#in-line-ignoring-errors
Jo macht absolut sinn, hab ich mit rein gepackt, schauen ob alles ohne Probleme durchlaeuft |
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.
LGTM
@Schrolli91 FYI, der stdin von multimon wird neu gesetzt, weil es hier zu crashes von mutlimon kam.