* checks syntax without executing code * @returns {Promise} rejects w/ stderr if syntax failure
(filePath: string)
| 303 | * @returns {Promise} rejects w/ stderr if syntax failure |
| 304 | */ |
| 305 | static async checkSyntaxFile(filePath: string) { |
| 306 | const pythonPath = this.getPythonPath() |
| 307 | let compileCommand = `${pythonPath} -m py_compile ${filePath}` |
| 308 | return execPromise(compileCommand) |
| 309 | } |
| 310 | |
| 311 | /** |
| 312 | * Runs a Python script and returns collected messages as a promise. |
no test coverage detected