Skip to content

fix lint tests - #14

Merged
wjwwood merged 1 commit into
ros2:masterfrom
dhood:master
Apr 6, 2016
Merged

wjwwood merged 1 commit into
ros2:masterfrom
dhood:master

Conversation

@dhood

@dhood dhood commented Apr 6, 2016

Copy link
Copy Markdown
Member

No description provided.

@dhood

dhood commented Apr 6, 2016

Copy link
Copy Markdown
Member Author

dealt with in #13

@dhood dhood closed this Apr 6, 2016
@dirk-thomas

Copy link
Copy Markdown
Member

Since @wjwwood removed the patch from his PR (#12 (comment)) this can be reopened.

@dirk-thomas dirk-thomas reopened this Apr 6, 2016
@dirk-thomas dirk-thomas added the in progress Actively being worked on (Kanban column) label Apr 6, 2016
# Remove implementations that are being filtered for in the rclpy CMakeLists so
# that they cannot be selected
__rmw_implementations = [rmw_impl for rmw_impl in __rmw_implementations
if rmw_impl not in ['rmw_connext_dynamic_cpp', 'rmw_fastrtps_cpp']]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For PEP8 compliance can you modify the wrapping and indentation to:

__rmw_implementations = [
    rmw_impl for rmw_impl in __rmw_implementations 
    if rmw_impl not in ['rmw_connext_dynamic_cpp', 'rmw_fastrtps_cpp']]

@wjwwood

wjwwood commented Apr 6, 2016

Copy link
Copy Markdown
Member

We can certainly merge this before mine. +1 (with @dirk-thomas's comments addressed).

@dhood

dhood commented Apr 6, 2016

Copy link
Copy Markdown
Member Author

ok fixed. Sorry about this pep8 stuff - something is missing on my system so that the lint checks are just spitting out junk (around 1000 lines just for rclpy). I'll find whatever is missing today and add it to the ros2 install instructions.

.format(__selected_rmw_implementation, get_rmw_implementations())
)
raise InvalidRCLPYImplementation()
'''

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about this block?

module_name = '._rclpy__{rmw_implementation}'.format(
rmw_implementation=__selected_rmw_implementation,
)
__rmw_implementation_module = importlib.import_module(module_name, package='rclpy')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you dropped this one unintentionally? 😛

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ah, you guys are too fast (and I have not been paying close enough attention - sorry for wasting your time on this.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No worries, we're supposed to wait until it is in review (i.e. it has the in review tag) anyways 😄.


# Remove implementations that are being filtered for in the rclp CMakeLists so they cannot be selected
__rmw_implementations = [rmw_impl for rmw_impl in __rmw_implementations if rmw_impl not in ['rmw_connext_dynamic_cpp', 'rmw_fastrtps_cpp']]
# Remove implementations that are being filtered for in the rclpy CMakeLists so

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nitpick: I would wrap after CMakeLists then the next line makes more sense on its own.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thank you, I'll do that from now on

@dirk-thomas

Copy link
Copy Markdown
Member

+1

@wjwwood

wjwwood commented Apr 6, 2016

Copy link
Copy Markdown
Member

lgtm too

@wjwwood
wjwwood merged commit 24e23fc into ros2:master Apr 6, 2016
@wjwwood wjwwood removed the in progress Actively being worked on (Kanban column) label Apr 6, 2016
@dhood

dhood commented Apr 6, 2016

Copy link
Copy Markdown
Member Author

Regarding my previous comment re linter tests failing, I found (in addition to ament/ament_lint#48) that in the CI build there's a line

Step 14 : RUN apt-get update && apt-get install -y clang-format-3.4 cppcheck git pyflakes python3-coverage python3-mock python3-nose python3-pep8 uncrustify

which is (mostly) missing from the source installation instructions, so I was missing some of the packages.

Since the instructions call ament with --build-tests, should we also include a line in the instructions for the appropriate packages to run the tests? Or is there a more appropriate way to fix this?

@wjwwood

wjwwood commented Apr 6, 2016

Copy link
Copy Markdown
Member

@dhood I think you're right, it appears to be missing from both the Linux and OS X development guides. Ironically I think the Windows setup guide is up-to-date: https://github.com/ros2/ros2/wiki/Windows-Development-Setup#installing-a-few-dependencies

It's probably because our Linux and OS X machines are already set up with these tools for our other work, whereas the Windows machines are otherwise unused. Can you update those wiki pages (Linux and OS X)? If you need help or want a review on your changes, just let me know.

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.

3 participants