Skip to content

Commit 98af8bb

Browse files
committed
lint
1 parent acb91b1 commit 98af8bb

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer/get-python.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import * as proc from '../proc';
1111
import { callInstallerScript } from './get-pioarduino';
1212
import fs from 'fs';
1313
import path from 'path';
14-
import { spawn } from 'child_process';
1514
import { promisify } from 'util';
1615

1716
const execFile = promisify(require('child_process').execFile);
@@ -23,6 +22,7 @@ const execFile = promisify(require('child_process').execFile);
2322
*/
2423
function 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(/Python (\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

Comments
 (0)