Skip to content

Add support for validating dotenv files#10

Open
jeffqumata wants to merge 1 commit intoyuvipanda:mainfrom
jeffqumata:main
Open

Add support for validating dotenv files#10
jeffqumata wants to merge 1 commit intoyuvipanda:mainfrom
jeffqumata:main

Conversation

@jeffqumata
Copy link

fixes #6

Add support for validating dotenv files

Add missing dependency

Add support for validating dotenv files

Add missing dependency
# .yaml, but json otherwise
if filename.endswith('.yaml'):
doc = yaml.load(f)
elif filename.endswith('.env'):
Copy link

Choose a reason for hiding this comment

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

Would it be possible to rather do filename.contains('.env')? That would handle files like .env.secrets.

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.

Feature Request: Support for dotenv files

2 participants

Comments