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
+1
View File
@@ -3673,6 +3673,7 @@ By default, the module will be shown if any of the following conditions are met:
| `detect_extensions` | `['py']` | Which extensions should trigger this module |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
| `detect_env_vars` | `["VIRTUAL_ENV"]` | Which environmental variables should trigger this module |
| `disabled` | `false` | Disables the `python` module. |
::: tip