question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New config file format

See original GitHub issue

In the course of discussions on a number of issues (see, for example, #248, #10, #30 and #227), the topic of extensions to the cookiecutter.json format has come up. Rather than have the discussion scattered across multiple threads, let’s come up with a next-generation config format that is flexible enough to cater for all the various use cases.

Some thoughts:

  • We need to continue parsing the current format as “version 1.0” for backward compatibility.
  • Do we stick with JSON, or should we use YAML? (An advantage of using YAML is that the config version is detectable from the filename, an advantage of sticking with JSON is that we don’t have 2 parsers in the code).
  • Maybe include a config version, so future enhancements can be versioned more easily?

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
msabramocommented, Mar 5, 2015

I just started using cookiecutter but I’ll say that YAML config would be welcome. I don’t care for JSON as a config file format, because it’s too strict about having commas but not on the last element which makes it error-prone when editing.

0reactions
hackebrotcommented, Dec 30, 2016

See #848

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 3 Best Config File Formats - Jonathan Hall
But more commonly these days, new applications use some sort of standardized configuration file format, such as YAML, JSON, XML or INI.
Read more >
How to Write a Configuration file in Python | by Xiaoxu Gao
The most common and standardized formats are YAML, JSON, TOML and INI. A good configuration file should meet at least these 3 criteria:...
Read more >
CONFIG - Configuration File - File Format Docs
The CONFIG File format is used for server processes, software applications, and operating system settings. A programmer can write code to instruct a...
Read more >
Configuration file format
configr can be used to parse JSON, INI, YAML and TOML format configuration files. Examples of json, ini, yaml, toml format configuration file...
Read more >
Configuration file - Wikipedia
In computing, configuration files are files used to configure the parameters and initial settings for some computer programs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found