Skip to content

Commit 766095c

Browse files
committed
fix: attempt to resolve ruff
1 parent 1c365ce commit 766095c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

scripts/extract_rust_examples.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
get_rust_version,
4747
load_prelude,
4848
process_hidden_lines,
49-
run_doctests,
5049
save_results_json,
5150
)
5251

@@ -377,7 +376,7 @@ def test_examples_individually(
377376
if current_version:
378377
print(f"\n🦀 Detected Rust {current_version} ({current_channel})")
379378
else:
380-
print(f"\n⚠️ Could not detect Rust version")
379+
print("\n⚠️ Could not detect Rust version")
381380

382381
print(f"\n🧪 Testing {len(examples)} examples...")
383382

scripts/migrate_rust_examples.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
import argparse
2626
import os
2727
import re
28-
import subprocess
2928
import sys
30-
import tempfile
3129
from pathlib import Path
3230
from typing import Dict, List, Optional, Tuple
3331

@@ -333,7 +331,7 @@ def process_file(
333331
if not dry_run:
334332
file_path.write_text(new_content)
335333
if verbose:
336-
print(f" ✅ Written")
334+
print(" ✅ Written")
337335

338336
return changes
339337

scripts/rustdoc_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
"""
1313

1414
import json
15-
import os
1615
import re
1716
import subprocess
1817
import tempfile
19-
from dataclasses import dataclass, field
18+
from dataclasses import dataclass
2019
from pathlib import Path
2120
from typing import Dict, List, Optional, Tuple
2221

@@ -358,7 +357,7 @@ def load_prelude(prelude_path: Optional[str], required: bool = True) -> str:
358357
# File specified but not found
359358
if required:
360359
print(f"❌ Error: Prelude file not found: {prelude_path}")
361-
print(f" Examples that use ArithmeticError, DivError, etc. will fail without the prelude.")
360+
print(" Examples that use ArithmeticError, DivError, etc. will fail without the prelude.")
362361
import sys
363362
sys.exit(1)
364363
else:

0 commit comments

Comments
 (0)