-
Notifications
You must be signed in to change notification settings - Fork 105
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
Drop support for Python 3.5, add Black #150
Conversation
Updated the certificates to the most recent recommended ones because they have proper subjectAltName entries for |
@@ -10,7 +10,7 @@ fi | |||
set -euxo pipefail | |||
|
|||
|
|||
TEST_SUITE=${TEST_SUITE-oss} | |||
TEST_SUITE=${TEST_SUITE-xpack} |
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.
Switched to xpack
by default because the test suite doesn't pass with oss
due to ML.
|
||
return partial_result, df | ||
|
||
def _flatten_dict(self, y, field_mapping_cache): | ||
out = OrderedDict() | ||
out = {} |
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.
We don't need to use OrderedDict
anymore because all Python dicts are ordered, free performance boost. :)
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! There are still some .format
statements in the code we could change, but +1 for changes.
* Updating test matrix for 7.6 + removing oss for now. * Resolving 7.6.0 docs issues * Updating ML docs * Minor mod to support 6.x style indices. Currently, there is no specific test for this as it requires a 6.x cluster. 6.x is not officially supported by 7.x clients, but this is a friendly option for users. * Adding unittest for FieldMappings._extract_fields_from_mapping * Changing to f-string formatting and adding exception test * Reverting to OrderedDict Will change after #150 is merged.
All done with |
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!
LGTM! |
* Updating test matrix for 7.6 + removing oss for now. * Resolving 7.6.0 docs issues * Updating ML docs * Minor mod to support 6.x style indices. Currently, there is no specific test for this as it requires a 6.x cluster. 6.x is not officially supported by 7.x clients, but this is a friendly option for users. * Adding unittest for FieldMappings._extract_fields_from_mapping * Changing to f-string formatting and adding exception test * Reverting to OrderedDict Will change after elastic/eland#150 is merged.
Removes support for Python 3.5 and in the same branch adds Black+Flake8 and fixes all formatting issues. This PR is part of trying to get all Python clients on the same modern configuration for style and task management.
This PR consists of 4 commits, there are a lot of changes in the final commit so it's probably best to review each one individually:
pyupgrade
to automatically do the upgrade from 3.5 -> 3.6: 9fbb21d