Skip to content

Commit 6875f1d

Browse files
authored
suppress deprecation warning in flake8 caused by importlib_metadata # 298 (#109)
Co-authored-by: Dirk Thomas <dirkt@nvidia.com>
1 parent 8f1b92a commit 6875f1d

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

colcon_cmake/task/cmake/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def add_arguments(self, *, parser): # noqa: D102
6464
action='store_true',
6565
help='Force CMake configure step')
6666

67-
async def build(
67+
async def build( # noqa: D102
6868
self, *, additional_hooks=None, skip_hook_creation=False,
6969
environment_callback=None, additional_targets=None
70-
): # noqa: D102
70+
):
7171
pkg = self.context.pkg
7272
args = self.context.args
7373

colcon_cmake/test_result/ctest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def __init__(self): # noqa: D107
2626
satisfies_version(
2727
TestResultExtensionPoint.EXTENSION_POINT_VERSION, '^1.0')
2828

29-
def get_test_results(
29+
def get_test_results( # noqa: D102
3030
self, basepath, *, collect_details, files=None
31-
): # noqa: D102
31+
):
3232
results = set()
3333
# check all 'TAG' files in a directory named 'Testing'
3434
for tag_file in basepath.glob('**/Testing/TAG'):

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ zip_safe = true
5151
[tool:pytest]
5252
filterwarnings =
5353
error
54+
# Suppress deprecation warning in flake8
55+
ignore:SelectableGroups dict interface is deprecated::flake8
5456
junit_suite_name = colcon-cmake
5557

5658
[options.entry_points]

0 commit comments

Comments
 (0)