Skip to content

Conversation

@pvital
Copy link
Member

@pvital pvital commented Jul 11, 2025

Add is_truthy() function to accept True, true, and 1 as boolean True values when reading environment variables. This makes configuration more flexible and user-friendly.

  • Add new is_truthy() utility function in config.py
  • Update environment variable checks in options.py to use the new function
  • Add parametrized tests to verify functionality with various input values

Signed-off-by: Paulo Vital paulo.vital@ibm.com

… variables.

Add `is_truthy()` function to accept `True`, `true`, and `1` as boolean `True` values when reading environment variables. This makes configuration more flexible and user-friendly.

- Add new `is_truthy()` utility function in config.py
- Update environment variable checks in options.py to use the new function
- Add parametrized tests to verify functionality with various input values

Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
@pvital pvital requested a review from a team as a code owner July 11, 2025 08:21
@pvital pvital self-assigned this Jul 11, 2025
Copy link
Contributor

@GSVarsha GSVarsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@pvital pvital merged commit ddceea5 into main Jul 11, 2025
17 checks passed
@pvital pvital deleted the all_true_env_vars branch July 11, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants