From 6875f1dcb9109617cbd264fc60f6a2e488047f4c Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Mon, 9 Aug 2021 00:18:24 -0700 Subject: [PATCH] suppress deprecation warning in flake8 caused by importlib_metadata # 298 (#109) Co-authored-by: Dirk Thomas --- colcon_cmake/task/cmake/build.py | 4 ++-- colcon_cmake/test_result/ctest.py | 4 ++-- setup.cfg | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/colcon_cmake/task/cmake/build.py b/colcon_cmake/task/cmake/build.py index a827038..aa8ffba 100644 --- a/colcon_cmake/task/cmake/build.py +++ b/colcon_cmake/task/cmake/build.py @@ -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 diff --git a/colcon_cmake/test_result/ctest.py b/colcon_cmake/test_result/ctest.py index 82351c0..38c9677 100644 --- a/colcon_cmake/test_result/ctest.py +++ b/colcon_cmake/test_result/ctest.py @@ -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'): diff --git a/setup.cfg b/setup.cfg index b4407ca..dcd7c34 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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]