theskumar / theskumar/python-dotenv
Consider allowing directory to search for in `find_dotenv`
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 8.9k
- Forks
- 581
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The issue
Currently, find_dotenv takes the cwd or the directory of the python file that called it. This does not allow specifying a custom directory to search for the .env file without temporarily switching the cwd before calling find_dotenv.
Proposed solution
Add a dir: Optional[StrPath] argument and use that instead of inferring if it's not None.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Start at the find_dotenv entry point and review how it currently infers the directory from the cwd or calling Python file. Done means an optional dir argument can provide the directory used to search for .env without changing the cwd.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- devops
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 45/100