@@ -11,7 +11,6 @@ import * as proc from '../proc';
1111import { callInstallerScript } from './get-pioarduino' ;
1212import fs from 'fs' ;
1313import path from 'path' ;
14- import { spawn } from 'child_process' ;
1514import { promisify } from 'util' ;
1615
1716const execFile = promisify ( require ( 'child_process' ) . execFile ) ;
@@ -23,6 +22,7 @@ const execFile = promisify(require('child_process').execFile);
2322 */
2423function log ( level , message ) {
2524 const timestamp = new Date ( ) . toISOString ( ) ;
25+ // eslint-disable-next-line no-console
2626 console [ level ] ( `[${ timestamp } ] [Python-Installer] ${ message } ` ) ;
2727}
2828
@@ -38,7 +38,9 @@ function isPythonVersionCompatible(pythonVersion, forInstallation = false) {
3838 const major = parseInt ( versionParts [ 0 ] , 10 ) ;
3939 const minor = parseInt ( versionParts [ 1 ] , 10 ) ;
4040
41- if ( major !== 3 ) return false ;
41+ if ( major !== 3 ) {
42+ return false ;
43+ }
4244
4345 if ( forInstallation ) {
4446 return minor === 13 ; // Only 3.13.x for new installations
@@ -107,7 +109,9 @@ async function isValidPythonVersion(executable) {
107109 } ) ;
108110
109111 const versionMatch = output . match ( / P y t h o n ( \d + \. \d + \. \d + ) / ) ;
110- if ( ! versionMatch ) return false ;
112+ if ( ! versionMatch ) {
113+ return false ;
114+ }
111115
112116 return isPythonVersionCompatible ( versionMatch [ 1 ] , false ) ; // Allow 3.10-3.13 for finding existing
113117 } catch {
@@ -272,7 +276,7 @@ async function ensurePythonExeExists(pythonDir, pythonVersion = '3.13') {
272276 * @returns {Promise<string> } Path to installed Python directory
273277 * @throws {Error } If Python installation fails for any reason
274278 */
275- export async function installPortablePython ( destinationDir , options = { } ) {
279+ export async function installPortablePython ( destinationDir ) {
276280 log ( 'info' , 'Starting Python 3.13 installation' ) ;
277281
278282 // UV-based installation is now the only supported method
0 commit comments