Skip to content

python: remove dependency to python-dotenv#1285

Merged
reyammer merged 1 commit intomainfrom
gh-1283-remove-env
Feb 16, 2026
Merged

python: remove dependency to python-dotenv#1285
reyammer merged 1 commit intomainfrom
gh-1283-remove-env

Conversation

@reyammer
Copy link
Collaborator

This also avoids loading .env, which may surprise some users. Only the magika_client.py was using the environment to override the default model used, so I don't expect this to create backward compatibility problems.

Fixes #1283.

This also avoids loading .env, which may surprise some users. Only the magika_client.py was using the environment to override the default model used, so I don't expect this to create backward compatibility problems.

Fixes #1283.
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the python-dotenv dependency, which is a good improvement as it avoids automatically loading .env files and surprising users of the library. The changes are consistent across the pyproject.toml, the source code where the dependency was used, and the uv.lock file. The CHANGELOG.md has also been updated to reflect this change and correctly notes that .env files are no longer loaded automatically. The changes are correct and improve the library's design by removing side effects.

@reyammer reyammer merged commit 501ced1 into main Feb 16, 2026
87 checks passed
@reyammer reyammer deleted the gh-1283-remove-env branch February 16, 2026 14:03
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.

Unnecessary loading of .env variables?

1 participant