Skip to content

Commit 1e8f34f

Browse files
authored
Merge pull request #5672 from StackStorm/pylint-ignores
Add misc pylint ignores for false positives
2 parents f808954 + 850534b commit 1e8f34f

File tree

6 files changed

+7
-3
lines changed

6 files changed

+7
-3
lines changed

contrib/runners/winrm_runner/winrm_runner/winrm_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def __init__(self, response):
9999

100100
class WinRmBaseRunner(ActionRunner):
101101
def pre_run(self):
102+
# pylint: disable=unsubscriptable-object
102103
super(WinRmBaseRunner, self).pre_run()
103104

104105
# common connection parameters

contrib/runners/winrm_runner/winrm_runner/winrm_command_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
class WinRmCommandRunner(WinRmBaseRunner):
3131
def run(self, action_parameters):
32+
# pylint: disable=unsubscriptable-object
3233
cmd_command = self.runner_parameters[RUNNER_COMMAND]
3334

3435
# execute

contrib/runners/winrm_runner/winrm_runner/winrm_ps_command_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
class WinRmPsCommandRunner(WinRmBaseRunner):
3131
def run(self, action_parameters):
32+
# pylint: disable=unsubscriptable-object
3233
powershell_command = self.runner_parameters[RUNNER_COMMAND]
3334

3435
# execute

lint-configs/python/.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ property-classes=abc.abstractproperty
2626
[TYPECHECK]
2727
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
2828
# static analysis
29-
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves
29+
# orjson has type stubs, but pylint doesn't support __init__.pyi yet: https://github.com/PyCQA/pylint/issues/2873
30+
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves,orjson
3031

3132
[FORMAT]
3233
max-line-length=100

st2common/benchmarks/micro/test_mongo_field_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060

6161
# Needed so we can subclass it
62-
LiveActionDB._meta["allow_inheritance"] = True
62+
LiveActionDB._meta["allow_inheritance"] = True # pylint: disable=no-member
6363

6464

6565
# 1. Current approach aka using EscapedDynamicField

st2common/bin/migrations/v3.1/st2-cleanup-policy-delayed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def main():
4646
except Exception as e:
4747
LOG.error(
4848
"ABORTED: Clean up of executions with deprecated policy-delayed status aborted on "
49-
"first failure. %s" % e.message
49+
"first failure. %s" % e.message # pylint: disable=no-member
5050
)
5151
exit_code = 1
5252

0 commit comments

Comments
 (0)