feat(python): Add detect env vars option (#4486)

feat(python): Configure different detect env vars

Allow the env vars that trigger the python module to be configured, if
an empty list is passed then the module will fall back to just
triggering based on the configured files, folders and extensions.
This commit is contained in:
Thomas O'Donnell
2024-08-18 18:11:13 +02:00
committed by GitHub
parent e47dd5ab25
commit 8a2d944bc8
4 changed files with 54 additions and 2 deletions
+12
View File
@@ -1396,6 +1396,9 @@
},
"python": {
"default": {
"detect_env_vars": [
"VIRTUAL_ENV"
],
"detect_extensions": [
"py"
],
@@ -5258,6 +5261,15 @@
"items": {
"type": "string"
}
},
"detect_env_vars": {
"default": [
"VIRTUAL_ENV"
],
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false