Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus-amarante committed Dec 12, 2020
1 parent 409245d commit 5a843d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rosdep2/rospkg_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@
# resources and SourcesListLoader would build a *single* view that was
# no longer resource-dependent.


def all_dep_types():
# NOTE: 'group' is excluded
return {x[:-len('_depends')] for x in catkin_pkg.package.Package.__slots__ if x.endswith('_depends')} - {'group'}


class RosPkgLoader(RosdepLoader):

def __init__(self, rospack=None, rosstack=None, underlay_key=None, dependency_types=[]):
Expand Down
1 change: 1 addition & 0 deletions test/test_rosdep_rospkg_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def test_RosPkgLoader_get_loadable():
for s in ['ros', 'empty', 'invalid', 'stack1']:
assert s in keys


def test_rospkg_loader_all_dep_types():
from rosdep2.rospkg_loader import all_dep_types
assert all_dep_types() == {'build', 'buildtool', 'build_export', 'buildtool_export', 'exec', 'test', 'doc'}, all_dep_types()

0 comments on commit 5a843d5

Please sign in to comment.