-
Notifications
You must be signed in to change notification settings - Fork 915
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 documentation about pyproject.toml
#2427
Conversation
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @ankatiyar!
First comment that comes to mind: maybe we could use 3 different words for 3 different things:
- "Configuration"/"config": everything under
conf/
- "Settings":
settings.py
- "Metadata"/"Project metadata":
pyproject.toml
(since eventually we're moving all project metadata there, see Make all starters usepyproject.toml
#2280 (comment)
I'm not a native speaker but, even though understanding that "configuration" and "settings" are mostly the same, and that pyproject.toml
does indeed contain some "Kedro settings", by at least striving for internal consistency in the terminology we can hopefully minimize confusion.
I love this @datajoely. Might inform @merelcht 's gh-2421 |
Let's continue the conversation about terminology in #2434. |
RTD build because of:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one suggestion about the wording, but other than that it's great having this finally, thanks @ankatiyar! 🙌🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work -- thank you! Just a few minor tweaks 🏆 🏅
Co-authored-by: Juan Luis Cano Rodríguez <juan_cano@mckinsey.com>
Co-authored-by: Jo Stichbury <jo_stichbury@mckinsey.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com>
@ankatiyar Just to say that I fixed a couple of merge issues as a result of my FAQ PR, which is now in |
Thanks @stichbury! 👍 |
You can also use `pyproject.toml` to specify settings for functionalities such as [micro-packaging](../nodes_and_pipelines/micro_packaging.md). | ||
You can also store the settings for the other tools you've used in your project, such as [`pytest` for automated testing](../development/automated_testing.md). | ||
Consult the respective documentation for the tools you have used to check how you can configure the settings with the `pyproject.toml` file for your project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a wild idea, can we link our pyproject.toml
as an example?
https://github.com/kedro-org/kedro/blob/main/pyproject.toml
`kedro_init_version` specifies the version of Kedro the project was created with. When you upgrade to a newer Kedro version, | ||
this value should also be updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it the version of the "starter"? Just double checking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's the version of Kedro used to create the project. It's also there when you make a blank project with kedro new
* first draft pyproject.toml Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Update docs/source/kedro_project_setup/settings.md Co-authored-by: Juan Luis Cano Rodríguez <juan_cano@mckinsey.com> * Apply suggestions from code review Co-authored-by: Jo Stichbury <jo_stichbury@mckinsey.com> * lint + fix rtd build Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix linting errors introduced by merge from FAQ changes Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com> --------- Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com> Co-authored-by: Juan Luis Cano Rodríguez <juan_cano@mckinsey.com> Co-authored-by: Jo Stichbury <jo_stichbury@mckinsey.com> Signed-off-by: Jannic Holzer <jannic.holzer@quantumblack.com>
Description
Resolves #2377
Development notes
I've added a section about the settings contained in
pyproject.toml
to the "Project Settings" (docs/source/kedro_project_setup/settings.md
) page in "Kedro Project Setup" sectiondocs/source/get_started/kedro_concepts.md
isn't rendered as a linkproject_version
tokedro_init_version
in the faqsChecklist
RELEASE.md
file