Skip to content

Commit 7e3d9b2

Browse files
Alexandru-Cezar Sardanvibharya
authored andcommitted
tests/lints: remove some python checks
Remove linter checks that are not available anymore in the new version of pycodestyle. Signed-off-by: Alexandru-Cezar Sardan <[email protected]>
1 parent 8750fb3 commit 7e3d9b2

File tree

7 files changed

+2
-7
lines changed

7 files changed

+2
-7
lines changed

tests/framework/microvm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ def ssh_config(self):
288288
"""Get the ssh configuration used to ssh into some microVMs."""
289289
return self._ssh_config
290290

291+
# pylint: disable=C2801
291292
@ssh_config.setter
292293
def ssh_config(self, key, value):
293294
"""Set the dict values inside this configuration."""

tests/framework/scheduler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ def pytest_runtestloop(self, session):
237237

238238
@pytest.mark.tryfirst
239239
# pylint: disable=unused-argument
240-
# pylint: disable=no-self-use
241240
def pytest_sessionfinish(self, session, exitstatus):
242241
"""Pytest hook. Wrap up the whole testing session.
243242

tests/framework/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414
import platform
1515

1616
from collections import namedtuple, defaultdict
17-
from pathlib import Path
1817
import psutil
1918
from retry import retry
2019

21-
from framework import utils
2220
from framework.defs import MIN_KERNEL_VERSION_FOR_IO_URING
2321

2422
CommandReturn = namedtuple("CommandReturn", "returncode stdout stderr")

tests/integration_tests/style/test_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_python_style():
1818
'--output-format=colorized --attr-rgx="[a-z_][a-z0-9_]{1,30}$" ' \
1919
'--argument-rgx="[a-z_][a-z0-9_]{1,35}$" ' \
2020
'--variable-rgx="[a-z_][a-z0-9_]{1,30}$" --disable=' \
21-
'bad-continuation,fixme,too-many-instance-attributes,import-error,' \
21+
'fixme,too-many-instance-attributes,import-error,' \
2222
'too-many-locals,too-many-arguments,consider-using-f-string,' \
2323
'consider-using-with',
2424

tools/parse_baselines/providers/block.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def __init__(self, data_provider: Iterator):
3131
"cpu_utilization_vmm/Avg",
3232
])
3333

34-
# pylint: disable=R0201
3534
def calculate_baseline(self, data: List[float]) -> dict:
3635
"""Return the target and delta values, given a list of data points."""
3736
avg = statistics.mean(data)

tools/parse_baselines/providers/iperf3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def __init__(self, data_provider: Iterator):
2828
"cpu_utilization_vmm/Avg",
2929
])
3030

31-
# pylint: disable=R0201
3231
def calculate_baseline(self, data: List[float]) -> dict:
3332
"""Return the target and delta values, given a list of data points."""
3433
avg = statistics.mean(data)

tools/parse_baselines/providers/snapshot_restore.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def __init__(self, data_provider: Iterator):
2727
"restore_latency/P90",
2828
])
2929

30-
# pylint: disable=R0201
3130
def calculate_baseline(self, data: List[float]) -> dict:
3231
"""Return the target and delta values, given a list of data points."""
3332
avg = statistics.mean(data)

0 commit comments

Comments
 (0)