Skip to content

Commit d639677

Browse files
committed
Cleanup: Fix all flake8 linter errors, add missing imports, and remove duplicate keys in mappings
1 parent 14c1b2b commit d639677

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

shellrosetta/cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# shellrosetta/cli.py
22

3+
from .config import config
4+
from .plugins import plugin_manager
5+
from .ml_engine import ml_engine
6+
from .utils import print_header, print_translation, sanitize_command, format_command_history
7+
from .api import run_api_server
38

49
import sys
510
try:

shellrosetta/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# shellrosetta/config.py
2-
3-
2+
from pathlib import Path
43
import os
54
import json
65
class Config:

shellrosetta/ml_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# shellrosetta/ml_engine.py
22

3-
3+
from datetime import timedelta
44
import json
55
import os
66
import re

shellrosetta/plugins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from abc import ABC, abstractmethod
99
from typing import Dict, List, Optional, Any, Callable
1010
import json
11+
import shutil
12+
1113

1214
class CommandPlugin(ABC):
1315
"""Base class for command translation plugins"""

shellrosetta/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# shellrosetta/utils.py
22

3-
3+
from .config import config
44
import os
55
import sys
66
class Colors:

0 commit comments

Comments
 (0)