Skip to content
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

prep next release #no_auto_pr #1297

Merged
merged 1 commit into from
Feb 27, 2023
Merged

prep next release #no_auto_pr #1297

merged 1 commit into from
Feb 27, 2023

Conversation

adrian-kong
Copy link
Contributor

prep next release, not sure why make python creates all these files right now... (opening PR instead of pushing to master)

also seems like java gradle needs to be downgraded or remove jacoco xml report

@adrian-kong adrian-kong requested review from a team, silverjam and notoriaga as code owners February 27, 2023 03:56
@adrian-kong adrian-kong changed the title prep next release prep next release #no_auto_pr Feb 27, 2023
Copy link
Contributor

@silverjam silverjam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to figure out the Python issues before we can merge

@@ -20,7 +20,7 @@

from sbp.msg import SBP, SENDER_ID
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
from sbp.gnss import GnssSignal, GnssSignalDep
from sbp.gnss import CarrierPhase, GnssSignal, GnssSignalDep, GPSTime, GPSTimeDep, GPSTimeSec, SvId
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone maybe manually edited these files to get them to pass CI? It looks like they are failing a pyflakes check:

________________________________ pyflakes-check ________________________________
/home/runner/work/libsbp/libsbp/python/sbp/acquisition.py:23: UnusedImport
'sbp.gnss.CarrierPhase' imported but unused
/home/runner/work/libsbp/libsbp/python/sbp/acquisition.py:23: UnusedImport
'sbp.gnss.GPSTime' imported but unused
/home/runner/work/libsbp/libsbp/python/sbp/acquisition.py:23: UnusedImport
'sbp.gnss.GPSTimeDep' imported but unused
/home/runner/work/libsbp/libsbp/python/sbp/acquisition.py:23: UnusedImport
'sbp.gnss.GPSTimeSec' imported but unused
/home/runner/work/libsbp/libsbp/python/sbp/acquisition.py:23: UnusedImport
'sbp.gnss.SvId' imported but unused

So, probably need to modify the Python template to ignore that check, or disable pyflakes. E.g. https://stackoverflow.com/a/10506715/749342 -- so add # NOQA to the end of the import line

Copy link
Contributor Author

@adrian-kong adrian-kong Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm NVM i think my tox is just broken actually...
make gen-python runs --remove-all-unused-imports, had some issues running tox it gets upgraded to tox>4 and returns 'import missing hookimpl',
instead this was generated running tox==3.12.1 which seems to not like the autoflake remove unused imports:

tox -e py --run-command="autoflake -i --remove-all-unused-imports -r python/sbp"

works fine running autoflake -i --remove-all-unused-imports -r python/sbp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants