added unnecessary-dunder-call to pylintrc files; disabled for certain lines (#655)

in run_tests.py, exception thrown by 'git remote add origin' when the remote already exists will not exit

Signed-off-by: Mark Cohen <[email protected]>
This commit is contained in:
Mark Cohen
2024-01-22 09:12:57 -05:00
committed by GitHub
parent 7c66e8cf3d
commit 6e58837993
8 changed files with 38 additions and 27 deletions
@@ -17,7 +17,7 @@ class TestPluginsClient(TestCase):
with self.assertWarns(Warning) as w:
client = OpenSearch()
# double-init
client.plugins.__init__(client) # type: ignore
client.plugins.__init__(client) # type: ignore # pylint: disable=unnecessary-dunder-call
self.assertEqual(
str(w.warnings[0].message),
"Cannot load `alerting` directly to OpenSearch as "