From 4294bfe8e9f03535555884c516ee5b740eb30493 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:24:45 +0000 Subject: [PATCH 1/2] Bump org.jlleitschuh.gradle.ktlint from 12.1.1 to 13.1.0 Bumps org.jlleitschuh.gradle.ktlint from 12.1.1 to 13.1.0. --- updated-dependencies: - dependency-name: org.jlleitschuh.gradle.ktlint dependency-version: 13.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9e7876a..1d0a99d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ intelliJPlatform = "2.0.1" jupiter = "5.10.3" kotlin = "2.0.10" kover = "0.9.2" -ktlint = "12.1.1" +ktlint = "13.1.0" remoteRobot = "0.11.23" taskinfo = "2.2.0" testLogger = "4.0.0" From 416f222e61cf0b9b2493290a88027a09ff560194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Wed, 15 Oct 2025 07:26:52 -0700 Subject: [PATCH 2/2] Apply formatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- .../actions/ConfigurePythonActionAbstract.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/pyvenvmanage/actions/ConfigurePythonActionAbstract.kt b/src/main/kotlin/com/github/pyvenvmanage/actions/ConfigurePythonActionAbstract.kt index f7d98f6..52cc75d 100644 --- a/src/main/kotlin/com/github/pyvenvmanage/actions/ConfigurePythonActionAbstract.kt +++ b/src/main/kotlin/com/github/pyvenvmanage/actions/ConfigurePythonActionAbstract.kt @@ -27,18 +27,23 @@ abstract class ConfigurePythonActionAbstract : AnAction() { // - any files within the binary folder. e.presentation.isEnabledAndVisible = when (val selectedPath = e.getData(CommonDataKeys.VIRTUAL_FILE)) { - null -> false - else -> + null -> { + false + } + + else -> { when (selectedPath.isDirectory) { true -> { // check if there is a python executable available under this folder -> name match for binary PythonSdkUtil.getPythonExecutable(selectedPath.path) != null } + false -> { // check for presence of the activate_this.py + activate alongside or pyvenv.cfg above PythonSdkUtil.isVirtualEnv(selectedPath.path) } } + } } }