docs/guides/lint_rules/rules/unsafe_system_call.md
š WASM ā Not Fixable
MW002: System calls that fail in WASM/Pyodide.
Walks the AST of each cell looking for calls to functions like
os.system(), os.fork(), signal.signal(), multiprocessing.Pipe(),
and breakpoint() that have no meaningful implementation in WASM.
These functions depend on OS features (process spawning, signal
handling, debugger attachment, unsupported multiprocessing
synchronization, or IPC) that don't exist in a browser environment.
They will raise OSError, NotImplementedError, or hang silently.
Problematic:
import os
os.system("ls")
Problematic:
breakpoint()
Problematic:
import multiprocessing
multiprocessing.Pipe()
Solution: Remove or guard these calls behind a WASM detection check.