-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Update dependencies in 3.0 to align with rasa-sdk #10667
Conversation
dd61f52
to
be72a3c
Compare
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.
To double-check, python 3.9 requires black
higher than v19
, so you went ahead and updated this to the version compatible with 3.9?
I would also double-check if there are any style changes that need to be updated in Engineering Guidelines
in Notion.
That's correct. When running
Some googling revealed it was a bug that was fixed in |
The only changes made by |
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.
LGTM
@carlad Oh is there a way to override the 80 columns to the previous setting, I think it was 88 or 89? This way you won't have such a large diff? |
@ancalita apologies but I was mistaken. I assumed it was line length, as I didn't realise we were working with an 88 char limit. Black and flake8 are already configured to do an 88 char line length, I've had a look through the files again and it seems much of the reformatting has to do with listing arguments on multiple lines, rather than on one line, eg the diff for
I looked through the Would bumping the version cause |
I think black already looks at all the files. |
The line length is defined under |
It looks like line length wasn't the issue. Line length is still configured at 88 chars in the pyproject.toml. The reformatting split multiple arguments to multiple lines. Is this a convention? |
@carlad seems like there's something funky going on here. |
@joejuzl indeed. Reading through the documentation I can't think of any reason |
Update: This seems like a change in black 21.7b0. |
Update: Black Black now assumes that if there is a trailing comma for a list of items, all items should be on separate lines. And the new |
So in the end, on a new branch, I ran Black with the |
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.
Looks good 👍
Can we make sure the commits are squashed and the final message makes clear it's a black update and formatting?
* correct transformer_size value if needed * improve checking and docstring * var name changed * domain_for_core_training_provider (#10437) * domain_for_core_training_provider * Update rasa/graph_components/providers/domain_for_core_training_provider.py Co-authored-by: Joe Juzl <[email protected]> * add integration test; add back enum (in constants.py); replace some text with const; ... * fix (is_predefined -> is_predefined_type) * trigger test * add slot mappings import * fix validation * fix * update domain provider name in schemata; replace str with enum * update classes in schemata as well... * trigger tests (MITIE install failed) * again :) * fix (slot mapping spec needed for core training) * lint * lint.. Co-authored-by: Joe Juzl <[email protected]> * Update dependencies in 3.0 to align with rasa-sdk (#10667) * align dependencies * use black 21.7b0 * apply black and docstring reformatting * add changelog * apply black formatting * fix flake8 check * update lock file Co-authored-by: jupyterjazz <[email protected]> Co-authored-by: Saba Sturua <[email protected]> Co-authored-by: Kathrin Bujna <[email protected]> Co-authored-by: Joe Juzl <[email protected]> Co-authored-by: carlad <[email protected]>
* correct transformer_size value if needed * improve checking and docstring * var name changed * domain_for_core_training_provider (#10437) * Update rasa/graph_components/providers/domain_for_core_training_provider.py Co-authored-by: Joe Juzl <[email protected]> * add integration test; add back enum (in constants.py); replace some text with const; ... * fix (is_predefined -> is_predefined_type) * add slot mappings import * fix validation * update domain provider name in schemata; replace str with enum * update classes in schemata as well... * fix (slot mapping spec needed for core training) Co-authored-by: Joe Juzl <[email protected]> * Update dependencies in 3.0 to align with rasa-sdk (#10667) * align dependencies * use black 21.7b0 * apply black and docstring reformatting * add changelog * prepare release of version 3.0.5 (#10706) * bump rasa-sdk Co-authored-by: jupyterjazz <[email protected]> Co-authored-by: Saba Sturua <[email protected]> Co-authored-by: Kathrin Bujna <[email protected]> Co-authored-by: Joe Juzl <[email protected]> Co-authored-by: carlad <[email protected]>
* align dependencies * use black 21.7b0 * apply black and docstring reformatting * add changelog
* Update dependencies in 3.0 to align with rasa-sdk (#10667 * bump rasa-sdk * filtering messages during training/prediction draft * remove unfeaturized messages for some nlu components * update forms docs with dynamic form example for removal of required slot * Use tf.function for model prediction in RasaModel. (#10738) * Use prompt_toolkit ^2.0 (#10761) Co-authored-by: jupyterjazz <[email protected]> Co-authored-by: carlad <[email protected]> Co-authored-by: Anca Lita <[email protected]> Co-authored-by: Matthias Leimeister <[email protected]>
* align dependencies * use black 21.7b0 * apply black and docstring reformatting * add changelog
* correct transformer_size value if needed * improve checking and docstring * var name changed * domain_for_core_training_provider (#10437) * domain_for_core_training_provider * Update rasa/graph_components/providers/domain_for_core_training_provider.py Co-authored-by: Joe Juzl <[email protected]> * add integration test; add back enum (in constants.py); replace some text with const; ... * fix (is_predefined -> is_predefined_type) * trigger test * add slot mappings import * fix validation * fix * update domain provider name in schemata; replace str with enum * update classes in schemata as well... * trigger tests (MITIE install failed) * again :) * fix (slot mapping spec needed for core training) * lint * lint.. Co-authored-by: Joe Juzl <[email protected]> * Update dependencies in 3.0 to align with rasa-sdk (#10667) * align dependencies * use black 21.7b0 * apply black and docstring reformatting * add changelog * apply black formatting * fix flake8 check * update lock file Co-authored-by: jupyterjazz <[email protected]> Co-authored-by: Saba Sturua <[email protected]> Co-authored-by: Kathrin Bujna <[email protected]> Co-authored-by: Joe Juzl <[email protected]> Co-authored-by: carlad <[email protected]>
Proposed changes:
Partially closes #592
This brings dependencies in the
pyproject.toml
in line with those inrasa-sdk
.I used
rasa
as the primary dependency source, so most changes were made in the PR forrasa-sdk
:RasaHQ/rasa-sdk#648.
However, as there was a python 3.9 compatibility issue with
black
, a newer version is being used, hence the changes in this PR.