File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,14 @@ def do_POST(self) -> None:
112
112
data = json .loads (body .decode ("utf-8" ))
113
113
code = data ["code" ]
114
114
115
+ # lint-ignore: NoUnsafeFilesystemRule
115
116
with open (os .path .join (self .tmp_dir , "sandbox.py" ), "w" ) as f :
116
117
f .write (code )
117
118
118
119
result : Optional [subprocess .CompletedProcess [str ]] = None
119
120
120
121
if build_system == "cargo" :
121
- # Run the cargo command
122
+ # lint-ignore: NoUnsafeExecRule
122
123
result = subprocess .run (
123
124
[
124
125
"cargo" ,
@@ -134,6 +135,7 @@ def do_POST(self) -> None:
134
135
cwd = "pyre2" ,
135
136
)
136
137
elif build_system == "buck" :
138
+ # lint-ignore: NoUnsafeExecRule
137
139
result = subprocess .run (
138
140
[
139
141
"buck2" ,
@@ -159,6 +161,7 @@ def do_POST(self) -> None:
159
161
self .end_headers ()
160
162
self .wfile .write (html_output .encode ("utf-8" ))
161
163
else :
164
+ # lint-ignore: NoUnsafeFilesystemRule
162
165
with open (os .path .join (self .tmp_dir , "output" ), "r" ) as f :
163
166
output = f .read ()
164
167
You can’t perform that action at this time.
0 commit comments