You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes ~30 lint issues surfaced by the CI job that were not caught locally
because the dev env runs a newer pylint. All pure lint fixes, no behavior
changes.
- osbenchmark/metrics.py:
- W0108 unnecessary-lambda: use bare OsResultsStore constructor. The
default's FileTestRunStore lambda is kept (with pragma) because the
class is defined later in the file, so a forward reference would fail
at import.
- C0415 import-outside-toplevel: pragma on the deferred cloudwatch
imports (deferral is intentional — imports at module top trigger a
circular between metrics.py and the cloudwatch submodules).
- osbenchmark/metrics_stores/cloudwatch/metrics_store.py:
- R1711 useless-return at end of to_externalizable.
- W1309 pointless f-string in Insights query builder.
- osbenchmark/metrics_stores/cloudwatch/client.py:
- C0415 pragma on deferred botocore.credentials imports (deferred to
keep the assume-role branch cost-free when unused).
- tests/metrics_stores/cloudwatch/conftest.py:
- E0702 raising-bad-type: bind fail_with to a local so type-narrowing
is preserved.
- Move botocore.exceptions import to the top of the module.
- tests/metrics_stores/cloudwatch/test_read_path.py,
tests/metrics_stores/cloudwatch/test_write_path.py:
- C0321 multi-statement lines expanded across ~10 sites in fake
classes and one-line def bodies.
- C0415/C0411 in-function conftest imports moved to module top and
consolidated in first-party-then-local order.
- W0611 unused imports removed.
- test_write_path.py adds a module-level `# pylint: disable=protected-
access` because the tests deliberately assert on `_buffered_events`
and `_client_factory` to verify internal state (test-only, expected).
Signed-off-by: Michael Oviedo <mikeovi@amazon.com>
0 commit comments