Verbose parameter not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 48/100
Research direction
Start in src/dotenv/main.py around line 61, then reproduce the missing-file cases with dotenv_values(..., verbose=True) from the issue. Verify the verbose path emits the documented warning when the .env file is missing, and add or update coverage for that behavior if the repository has a relevant test location.
Written by the indexing model from the issue text.
Description
The verbose parameter verbose: Whether to output a warning the .env file is missing. doesn't raise any warning.
>>> from dotenv import dotenv_values
>>> dotenv_values()
OrderedDict()
>>> dotenv_values(verbose=True)
OrderedDict()
>>> dotenv_values("a", verbose=True)
OrderedDict()
>>> dotenv_values(".", verbose=True)
OrderedDict()
>>> dotenv_values("/", verbose=True)
OrderedDict()
>>> dotenv_values("?", verbose=True)
OrderedDict()
>>> dotenv_values("¨", verbose=True)
OrderedDict()
The verbose doesn't seem to have any effect.
logger.info() was used instead of logger.warning() as it should. -> https://github.com/theskumar/python-dotenv/blob/3ffcef60d10813b72ecf85d5941d51b0207cd40e/src/dotenv/main.py#L61
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 581
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from theskumar/python-dotenv
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
theskumar/python-dotenv#699 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
theskumar/python-dotenv#697 ·
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
theskumar/python-dotenv#693 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
theskumar/python-dotenv#683 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
theskumar/python-dotenv#644 · 2 comments ·
All issues in theskumar/python-dotenv
Similar issues
-
bug ci good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
documentation
Difficulty 2/5 Half a day Newbie friendliness 62/100
inmanta/inmanta-core#10835 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
sponsored
Difficulty 2/5 1-3 hours Newbie friendliness 65/100