|
226 | 226 | }, |
227 | 227 | "source": [ |
228 | 228 | "# This is pseudo code currently !!!!!! (But it does work enough. Files disapear when they are 0.00 because no error entries so will generally see 5.0 until disapears)\n", |
| 229 | + "- the change is what is interesting so actually we should not parse the numbers at all and should just print the last line per file.\n", |
229 | 230 | "\n", |
230 | 231 | "# Lint Code Quality Report (For future use)\n", |
231 | 232 | "\n", |
|
285 | 286 | " if score_match:\n", |
286 | 287 | " score_str = score_match.group(1)\n", |
287 | 288 | " score = float(score_str)\n", |
288 | | - " print(f\" Parsed score string: '{score_str}' -> float: {score}\")\n", |
| 289 | + " #print(f\" Parsed score string: '{score_str}' -> float: {score}\")\n", |
289 | 290 | " return score\n", |
290 | 291 | " else:\n", |
291 | 292 | " print(f\" No score found\")\n", |
|
328 | 329 | " try:\n", |
329 | 330 | " all_issues = json.loads(result_json.stdout)\n", |
330 | 331 | " py_files = sorted(set(issue['path'] for issue in all_issues))\n", |
331 | | - " print(f\"Found {len(py_files)} files from JSON\\n\")\n", |
| 332 | + " #print(f\"Found {len(py_files)} files from JSON\\n\")\n", |
332 | 333 | " return aggregate_score, py_files\n", |
333 | 334 | " except json.JSONDecodeError:\n", |
334 | 335 | " print(\"Failed to parse JSON for file list\\n\")\n", |
|
340 | 341 | "\n", |
341 | 342 | "# Process each file\n", |
342 | 343 | "file_data = {}\n", |
343 | | - "print(\"Processing individual files...\")\n", |
| 344 | + "#print(\"Processing individual files...\")\n", |
344 | 345 | "\n", |
345 | 346 | "for py_file in py_files:\n", |
346 | | - " print(f\"\\n{Path(py_file).name}:\")\n", |
347 | | - " print(f\"\\nProcessing: {py_file}\")\n", |
| 347 | + " #print(f\"\\n{Path(py_file).name}:\")\n", |
| 348 | + " #print(f\"\\nProcessing: {py_file}\")\n", |
348 | 349 | " # Get score\n", |
349 | 350 | " cmd = [sys.executable, \"-m\", \"pylint\", py_file]\n", |
350 | 351 | " result = subprocess.run(cmd, capture_output=True, text=True)\n", |
|
0 commit comments