Standardised static package-level configuration for out-of-code tooling #4868
Replies: 5 comments 8 replies
-
I'm glad this is getting brought up, I've thought about this a bit over the course of building gladvent and I am of mixed opinions
As for format: regardless of where it lives, let's push for toml pls |
Beta Was this translation helpful? Give feedback.
-
This is a great initiative. My preferences would be
|
Beta Was this translation helpful? Give feedback.
-
Just my $0.02. Personally I will like to add tools' settings in
|
Beta Was this translation helpful? Give feedback.
-
Also for sticking stuff in
The one downside I can think of is that it makes it harder for tools to have an |
Beta Was this translation helpful? Give feedback.
-
I am generally in favor of keeping tool configs in Maybe having those two places as the only officially blessed config locations would be enough for devs to stick to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As the Gleam ecosystem grows more tools will be created for various tasks, such as linting, dependency auditing, code generation, etc.
Configuration for dependencies in Gleam is typically passed in as arguments, but there are situations in which writing a wrapper module for the tool isn't possible, such as:
It would be good to have a recommendation for how to configure these out-of-code tools!
In some other ecosystems these result in a number of config files in different formats (JSON, YAML, TOML, XML, INI, JavaScript, etc) in the root of the project directory.
In Python it is recommended for each tool to parse the
pyproject.toml
config file (analogous to ourgleam.toml
) and read config from[tool.$TOOL_NAME]
, resulting in less file system clutter, and consistency with the configuration language used.Are there other options we could consider?
Beta Was this translation helpful? Give feedback.
All reactions