Skip to content

Commit 2cffaaa

Browse files
committed
Fix linter
1 parent 3fd9d5a commit 2cffaaa

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

manager/manager/lint/linter.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import subprocess
55
import tempfile
66

7+
78
class Lint:
89

910
def clean_pylint_output(self, result, warnings=False):
@@ -130,11 +131,16 @@ def evaluate_source_code(self, files):
130131
code_file.seek(0)
131132
code_file.close()
132133

133-
options = f"{code_file.name} --enable=similarities --disable=C0114,C0116"
134+
options = (
135+
f"{code_file.name} --enable=similarities --disable=C0114,C0116"
136+
)
134137

135138
# Run pylint using subprocess
136139
result = subprocess.run(
137-
["pylint"] + options.split(), capture_output=True, text=True, env=linter_env
140+
["pylint"] + options.split(),
141+
capture_output=True,
142+
text=True,
143+
env=linter_env,
138144
)
139145

140146
# Process pylint exit

manager/manager/manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ def on_prepare_tools(self, event):
349349
tools = cfg_dict["tools"]
350350
config = cfg_dict["config"]
351351

352-
self.tools_launcher = LauncherTools(world_type= self.world_type ,tools=tools, tools_config=config)
352+
self.tools_launcher = LauncherTools(
353+
world_type=self.world_type, tools=tools, tools_config=config
354+
)
353355

354356
self.tools_launcher.run(self.consumer)
355357
LogManager.logger.info("Tools transition finished")

0 commit comments

Comments
 (0)