Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML as an option for context files. #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jmarini
Copy link

@jmarini jmarini commented Mar 17, 2014

Motivation here is that YAML is easier for human reading/editing especially with regards to convenience factors such as comments and not having to quote keys. Implemented using PyYAML since this package is already a requirement for the config file. Uses PyYAML to parse both .json and .yaml/.yml files since YAML is a superset of JSON (if this is not true of PyYAML and the standard json library it is an easy fix). I'm assuming here that the speed cost is going to be negligible on most projects since YAML parsing is typically slower than JSON.

As a side note, this change also fixes bug #26 since PyYAML gracefully ignores empty files.

@jmarini
Copy link
Author

jmarini commented Apr 21, 2014

Yeah thinking about it, it's probably better to have json parsed by the json module. Changed that back and added tests for yaml files.

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.

2 participants