Determine if dotenv loading has been disabled.
()
| 20 | |
| 21 | |
| 22 | def _load_dotenv_disabled() -> bool: |
| 23 | """ |
| 24 | Determine if dotenv loading has been disabled. |
| 25 | """ |
| 26 | if "PYTHON_DOTENV_DISABLED" not in os.environ: |
| 27 | return False |
| 28 | value = os.environ["PYTHON_DOTENV_DISABLED"].casefold() |
| 29 | return value in {"1", "true", "t", "yes", "y"} |
| 30 | |
| 31 | |
| 32 | def with_warn_for_invalid_lines(mappings: Iterator[Binding]) -> Iterator[Binding]: |
no outgoing calls
no test coverage detected
searching dependent graphs…