Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fix
  • Loading branch information
bebound committed Feb 6, 2023
commit 1928f2990d5c58f98b0e1137aad0f33bcc2c1d39
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ disable=
too-few-public-methods,
too-many-arguments,
consider-using-f-string,
unspecified-encoding
unspecified-encoding,
missing-timeout

[TYPECHECK]
# For Azure CLI extensions, we ignore some import errors as they'll be available in the environment of the CLI
Expand Down
2 changes: 1 addition & 1 deletion azdev/operations/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _benchmark_cmd_staticstic(time_series: list):
avg_time = sum(time_series) / size

std_deviation = sqrt(
sum([(t - avg_time) * (t - avg_time) for t in time_series]) / size
sum((t - avg_time) * (t - avg_time) for t in time_series) / size
)

return {
Expand Down
2 changes: 1 addition & 1 deletion azdev/operations/tests/test_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_statistic_ok(self):
max_num = round(rands[-1], 4)
min_num = round(rands[0], 4)
avg_num = round(sum(rands) / len(rands), 4)
std_num = round(sqrt(sum([(t - avg_num) ** 2 for t in rands]) / len(rands)), 4)
std_num = round(sqrt(sum((t - avg_num) ** 2 for t in rands) / len(rands)), 4)

stats = _benchmark_cmd_staticstic(rands)

Expand Down
2 changes: 1 addition & 1 deletion azdev/operations/testtool/tests/test_profile_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def test_unsupported_profile(self):
def test_raise_inner_exception(self):
with self.assertRaises(Exception):
with ProfileContext('latest'):
raise Exception('inner Exception')
raise Exception('inner Exception') # pylint: disable=broad-except