Closed stonier closed 3 years ago
Oh IIRC, at one point (a couple of ros2 versions ago) the OSRC build farm was using custom versions of this tooling for their CI. I did submit a complaint at the time - this makes it hard for users to make PR's against their core repos if the system debians for build tooling signalled by rosdep just happen to not be satisfactory - you can't run the tests, nor do you know what custom version is required so you can get on with it.
That might or might not still be true with dashing
.
Eliminating the Custom Machinery Not sure what the reasons for the custom machinery were (maybe the ament provided machinery was not yet ready), but there are 3 packages we could use in ament_lint - ament_pep257, ament_pyflake, ament_pycodestyle. We could/should investigate switching over to these.
Indeed, integrating this is quite straight forward. See doc: ament_cmake_pycodestyle/doc/
Per chat and research with @francocipollone , ament_pycodestyle
is not released for dashing. We will include it into the workspace but it won't be maintained by us).
+1 to use the new available machinery. It was not there at the moment.
Next steps:
ament_cmake_flake8
and remove old python check machinery in:
We can't just add ament_cmake_pycodestyle
to dsim.repos
file, we should bring the entire ament_lint
package which brings many not-used-by-us packages.
There is one simpler and cleaner option. (thanks @agalbachicar). ament_cmake_flake8
is available in dashing
.
We can deprecate the pycodestyle
script check and replace it with ament flake8
machinery. The outcome will be in essence the same.
I will proceed that way.
Closing this ticket as everything was already addressed.
We've got some custom python linting infrastructure here and over in
maliput_py
. Ostensibly we should have some indelphyne_demos
as well.Custom Machinery Hotfix
The
run_python_checks.sh
tool checks for the programpycodestyle
which is installed via thepycodestyle
deb (not the python-/python3- prefixed libraries. It's the correct one we need as it depends on the python3 version. To fix:pycodestyle
to https://github.com/ros/rosdistro/blob/master/rosdep/python.yamlpycodestyle
topackage.xml
maliput_py
Eliminating the Custom Machinery
Not sure what the reasons for the custom machinery were (maybe the ament provided machinery was not yet ready), but there are 3 packages we could use in ament_lint - ament_pep257, ament_pyflake, ament_pycodestyle. We could/should investigate switching over to these.