Skip to content

Commit

Permalink
suppress deprecation warning in flake8 caused by importlib_metadata #…
Browse files Browse the repository at this point in the history
… 298 (colcon#109)

Co-authored-by: Dirk Thomas <[email protected]>
  • Loading branch information
dirk-thomas and dirk-thomas authored Aug 9, 2021
1 parent 8f1b92a commit 6875f1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions colcon_cmake/task/cmake/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def add_arguments(self, *, parser): # noqa: D102
action='store_true',
help='Force CMake configure step')

async def build(
async def build( # noqa: D102
self, *, additional_hooks=None, skip_hook_creation=False,
environment_callback=None, additional_targets=None
): # noqa: D102
):
pkg = self.context.pkg
args = self.context.args

Expand Down
4 changes: 2 additions & 2 deletions colcon_cmake/test_result/ctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def __init__(self): # noqa: D107
satisfies_version(
TestResultExtensionPoint.EXTENSION_POINT_VERSION, '^1.0')

def get_test_results(
def get_test_results( # noqa: D102
self, basepath, *, collect_details, files=None
): # noqa: D102
):
results = set()
# check all 'TAG' files in a directory named 'Testing'
for tag_file in basepath.glob('**/Testing/TAG'):
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ zip_safe = true
[tool:pytest]
filterwarnings =
error
# Suppress deprecation warning in flake8
ignore:SelectableGroups dict interface is deprecated::flake8
junit_suite_name = colcon-cmake

[options.entry_points]
Expand Down

0 comments on commit 6875f1d

Please sign in to comment.