Skip to content

Commit 417e91f

Browse files
committed
Cleanup: Squashed F601, E304, and E128 linter errors (dict key, decorator spacing, visual indent)
1 parent d639677 commit 417e91f

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ You'll be prompted for your translation mode (lnx2ps or ps2lnx). Enter commands
113113

114114
**Example session:**
115115

116-
```
116+
```shell
117117
$ shellrosetta
118118
=================================================================
119119
ShellRosetta: Linux ↔ PowerShell CLI Command Translator
@@ -138,4 +138,4 @@ PowerShell Equivalent:
138138
Remove-Item -Recurse -Force /tmp
139139
-------------------
140140

141-
> mode
141+
> mode

shellrosetta/mappings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@
135135
"Stop-Process -Name": ("pkill", None),
136136
"Get-Process -Name": ("pgrep", None),
137137
"Select-String": ("grep", None),
138-
"Get-ChildItem -Recurse": ("find", None),
139138
"Get-ComputerInfo | Select-Object OsName,OsVersion,OsArchitecture": ("uname -a", None),
140139
"whoami": ("whoami", None),
141140
"Get-PSDrive": ("df -h", None),

shellrosetta/ml_engine.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ def save_data(self):
135135
except Exception as e:
136136
print(f"Failed to save suggestions: {e}")
137137

138-
def learn_pattern(self, command: str, translation: str, direction: str,
139-
success: bool = True):
138+
def learn_pattern(self, command: str, translation: str, direction: str,success: bool = True):
140139
"""Learn a new command pattern"""
141140
key = f"{direction}:{command}"
142141

shellrosetta/parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class NodeType(Enum):
1717
CONDITIONAL = "conditional"
1818

1919
@dataclass
20-
2120
class ASTNode:
2221
"""Abstract Syntax Tree node for command parsing"""
2322
node_type: NodeType

0 commit comments

Comments
 (0)