Skip to content

Commit 1a5e6f2

Browse files
lolpackfacebook-github-bot
authored andcommitted
Suppress linter
Summary: Suppress lint warning Reviewed By: ndmitchell Differential Revision: D69208166 fbshipit-source-id: b54215ad02a7bb72e266c106c56a81aaf739f55b
1 parent 13f82ea commit 1a5e6f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyre2/serve_sandbox.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,14 @@ def do_POST(self) -> None:
112112
data = json.loads(body.decode("utf-8"))
113113
code = data["code"]
114114

115+
# lint-ignore: NoUnsafeFilesystemRule
115116
with open(os.path.join(self.tmp_dir, "sandbox.py"), "w") as f:
116117
f.write(code)
117118

118119
result: Optional[subprocess.CompletedProcess[str]] = None
119120

120121
if build_system == "cargo":
121-
# Run the cargo command
122+
# lint-ignore: NoUnsafeExecRule
122123
result = subprocess.run(
123124
[
124125
"cargo",
@@ -134,6 +135,7 @@ def do_POST(self) -> None:
134135
cwd="pyre2",
135136
)
136137
elif build_system == "buck":
138+
# lint-ignore: NoUnsafeExecRule
137139
result = subprocess.run(
138140
[
139141
"buck2",
@@ -159,6 +161,7 @@ def do_POST(self) -> None:
159161
self.end_headers()
160162
self.wfile.write(html_output.encode("utf-8"))
161163
else:
164+
# lint-ignore: NoUnsafeFilesystemRule
162165
with open(os.path.join(self.tmp_dir, "output"), "r") as f:
163166
output = f.read()
164167

0 commit comments

Comments
 (0)