fix:ruff

This commit is contained in:
SengokuCola
2026-04-18 00:19:28 +08:00
parent aedd08aac6
commit b067df9e60
27 changed files with 23 additions and 41 deletions

View File

@@ -15,7 +15,7 @@ for _path in (SRC_ROOT, PROJECT_ROOT, PLUGIN_ROOT):
if _path_str not in sys.path:
sys.path.insert(0, _path_str)
from A_memorix.paths import config_path, default_data_dir, resolve_repo_path
from A_memorix.paths import config_path, default_data_dir
DEFAULT_CONFIG_PATH = config_path()
DEFAULT_DATA_DIR = default_data_dir()

View File

@@ -10,14 +10,12 @@ LPMM 到 A_memorix 存储转换器
"""
import sys
import os
import json
import argparse
import asyncio
import pickle
import logging
from pathlib import Path
from typing import Dict, Any, List, Tuple
from typing import Dict, Any, Tuple
import numpy as np
import tomlkit

View File

@@ -12,17 +12,14 @@
from datetime import datetime
from pathlib import Path
from typing import Any, Dict, List, Optional
from typing import Any, Dict, Optional
from rich.console import Console
from rich.progress import BarColumn, Progress, SpinnerColumn, TextColumn, TimeElapsedColumn
from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
import argparse
import asyncio
import hashlib
import json
import os
import random
import sys
import time
import tomlkit

View File

@@ -17,7 +17,7 @@ import sqlite3
import sys
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Dict, Iterable, List, Optional, Sequence, Tuple
from typing import Any, Dict, List, Optional, Sequence, Tuple
import tomlkit