-
Notifications
You must be signed in to change notification settings - Fork 367
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
Allow configuration using pyproject.toml #537
Comments
Making this the preferred way for configuration would help prevent/workaround issues like #498. |
unrelated: the GitHub wiki for this project is empty; consider removing it? |
I like the sound of this but haven't looked into it yet. I suspect it would also dovetail nicely with adding TOML support for our own config files. |
Also, ties in cleanly with #471. |
FWIW, here's how the default configuration could look in TOML: [tool.invoke.tasks]
dedupe = true
auto_dash_names = true
collection_name = "tasks"
search_root = "." # there's no null/None in TOML
[tool.invoke.run]
echo = false
# lots of stuff; I think you got the idea. TOML's next release will have dotted keys, so once that's the version available everywhere, this could all just be replaced with: [tool.invoke]
tasks.dedupe = true
...
run.echo = false
... |
Is there an update on this? I'd also be willing to help and I have some questions/ideas/suggestions:
|
Hey Lukas. I imagine that if there were any updates to report, you would already see said updates here in this issue. I don't have good answers to your questions, but I will point out that |
You're right Justin. I'm sorry. But they seem interchangeable? They both have a |
Note: tomllib that can read toml files is in stdlib since Python 3.11. |
To answer some of the questions above:
Whatever is more convenient: tomli provides a backport on PyPI for Python versions where the
Using
It can be done in a separate commit/issue.
At step 5: Project-level configuration file, unless there are more specific per-project files such as
It seem reasonable to treat missing |
Anything blocking this? |
As per PEP 518, tools can use
tool.<pypi-name>
namespace within thepyproject.toml
file if they own<pypi-name>
on PyPI.Allowing configuration via the above mechanism would allow for users to have a single file in their root directory, for configuring this tool (and others) as for their project.
The text was updated successfully, but these errors were encountered: