Skip to content

Commit 533b328

Browse files
Alexandru-Cezar Sardanalsrdn
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 17a6c5d commit 533b328

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
@@ -287,6 +287,7 @@ def ssh_config(self):
287287
"""Get the ssh configuration used to ssh into some microVMs."""
288288
return self._ssh_config
289289

290+
# pylint: disable=C2801
290291
@ssh_config.setter
291292
def ssh_config(self, key, value):
292293
"""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
@@ -236,7 +236,6 @@ def pytest_runtestloop(self, session):
236236

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

tests/framework/utils.py

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

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

22-
from framework import utils
2321
from framework.defs import MIN_KERNEL_VERSION_FOR_IO_URING
2422

2523
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)