Skip to content

Commit 4076bfe

Browse files
Merge pull request #455 from adamtheturtle/useless-suppression
Check for useless suppression in pylint
2 parents b350335 + 738e67a commit 4076bfe

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pylintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ confidence=
5555
# either give multiple identifier separated by comma (,) or put this option
5656
# multiple time (only on the command line, not in the configuration file where
5757
# it should appear only once). See also the "--disable" option for examples.
58-
enable=spelling
58+
enable=
59+
spelling,
60+
useless-suppression,
5961

6062
# Disable the message, report, category or checker with the given id(s). You
6163
# can either give multiple identifiers separated by comma (,) or put this

src/mock_vws/_mock_web_services_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def get_duplicates(
573573
self,
574574
request: _RequestObjectProxy, # pylint: disable=unused-argument
575575
context: _Context, # pylint: disable=unused-argument
576-
target: Target, # pylint: disable=unused-argument
576+
target: Target,
577577
) -> str:
578578
"""
579579
Get targets which may be considered duplicates of a given target.

tests/mock_vws/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _delete_all_targets(database_keys: VuforiaDatabaseKeys) -> None:
5555

5656
@pytest.fixture()
5757
def target_id(
58-
png_rgb_success: io.BytesIO, # pylint: disable=redefined-outer-name
58+
png_rgb_success: io.BytesIO,
5959
vuforia_database_keys: VuforiaDatabaseKeys, # noqa: E501 pylint: disable=redefined-outer-name
6060
) -> str:
6161
"""

0 commit comments

Comments
 (0)