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

fix lint tests #14

Merged
merged 1 commit into from
Apr 6, 2016
Merged

fix lint tests #14

merged 1 commit into from
Apr 6, 2016

Conversation

dhood
Copy link
Member

@dhood dhood commented Apr 6, 2016

No description provided.

@dhood
Copy link
Member Author

dhood commented Apr 6, 2016

dealt with in #13

@dhood dhood closed this Apr 6, 2016
@dirk-thomas
Copy link
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
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
Copy link
Member

wjwwood commented Apr 6, 2016

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

@dhood
Copy link
Member Author

dhood commented Apr 6, 2016

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
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?

@@ -85,5 +88,4 @@ def import_rmw_implementation():
module_name = '._rclpy__{rmw_implementation}'.format(
rmw_implementation=__selected_rmw_implementation,
)
__rmw_implementation_module = importlib.import_module(module_name, package='rclpy')
Copy link
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
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
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 😄.

@@ -30,8 +30,11 @@ def reload_rmw_implementations():
global __rmw_implementations
__rmw_implementations = sorted(ament_index_python.get_resources('rmw_implementation').keys())

# 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
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
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
Member

+1

@wjwwood
Copy link
Member

wjwwood commented Apr 6, 2016

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
Copy link
Member Author

dhood commented Apr 6, 2016

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
Copy link
Member

wjwwood commented Apr 6, 2016

@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