From e4f735709b8f43d0506df3c8ae6d1926f18ca218 Mon Sep 17 00:00:00 2001 From: hsri-pf9 Date: Sat, 3 Jan 2026 14:33:11 +0000 Subject: [PATCH] chore: Ruff lint issues detected --- tmp/pr-body.md | 13 +++++++++ tmp/ruff_output.json | 68 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 tmp/pr-body.md create mode 100644 tmp/ruff_output.json diff --git a/tmp/pr-body.md b/tmp/pr-body.md new file mode 100644 index 0000000..f97e50f --- /dev/null +++ b/tmp/pr-body.md @@ -0,0 +1,13 @@ +# Ruff Lint Report for branch `private/soc2` +* File: /home/runner/work/pf9-watcher/pf9-watcher/pf9watcher/watcher.py + • Line: 3 + • Column: 1 + • Rule: I001 + • Message: Import block is un-sorted or un-formatted + +* File: /home/runner/work/pf9-watcher/pf9-watcher/pf9watcher/watcher.py + • Line: 274 + • Column: 50 + • Rule: F841 + • Message: Local variable `exp` is assigned to but never used + diff --git a/tmp/ruff_output.json b/tmp/ruff_output.json new file mode 100644 index 0000000..cf617a2 --- /dev/null +++ b/tmp/ruff_output.json @@ -0,0 +1,68 @@ +[ + { + "cell": null, + "code": "I001", + "end_location": { + "column": 41, + "row": 14 + }, + "filename": "/home/runner/work/pf9-watcher/pf9-watcher/pf9watcher/watcher.py", + "fix": { + "applicability": "safe", + "edits": [ + { + "content": "import argparse\nimport datetime\nimport logging\nimport os\nimport time\n\nimport ConfigParser\nimport novaclient\nfrom keystoneauth1 import session\nfrom keystoneauth1.identity import v2\nfrom novaclient import client as nclient\nfrom oslo_utils import timeutils\n\n\n", + "end_location": { + "column": 1, + "row": 17 + }, + "location": { + "column": 1, + "row": 3 + } + } + ], + "message": "Organize imports" + }, + "location": { + "column": 1, + "row": 3 + }, + "message": "Import block is un-sorted or un-formatted", + "noqa_row": 3, + "url": "https://docs.astral.sh/ruff/rules/unsorted-imports" + }, + { + "cell": null, + "code": "F841", + "end_location": { + "column": 53, + "row": 274 + }, + "filename": "/home/runner/work/pf9-watcher/pf9-watcher/pf9watcher/watcher.py", + "fix": { + "applicability": "safe", + "edits": [ + { + "content": "", + "end_location": { + "column": 53, + "row": 274 + }, + "location": { + "column": 46, + "row": 274 + } + } + ], + "message": "Remove assignment to unused variable `exp`" + }, + "location": { + "column": 50, + "row": 274 + }, + "message": "Local variable `exp` is assigned to but never used", + "noqa_row": 274, + "url": "https://docs.astral.sh/ruff/rules/unused-variable" + } +] \ No newline at end of file