mlflow: Fix `use-set-literal` lint errors
Fix use-set-literal lint errors by following the instructions below (example PR: #6534):
What needs to be fixed?
set applied on list or tuple literal need to be converted to set literal:
# Bad
set([1, 2, 3])
set((1, 2, 3))
# Good
{1, 2, 3}
Files
| File | Assignee | PR |
|---|---|---|
| mlflow/azure/client.py | @Monkero | #6544 |
| mlflow/entities/lifecycle_stage.py | @Monkero | #6544 |
| mlflow/entities/run_status.py | @Monkero | #6544 |
| mlflow/server/handlers.py | @dsgibbons | #6542 |
| mlflow/tracking/fluent.py | @dsgibbons | #6542 |
| mlflow/utils/autologging_utils/safety.py | @dsgibbons | #6542 |
| tests/autologging/test_autologging_behaviors_unit.py | @dsgibbons | #6543 |
| tests/entities/test_run_info.py | @dsgibbons | #6543 |
| tests/entities/test_run_status.py | @dsgibbons | #6543 |
| tests/lightgbm/test_lightgbm_autolog.py | @iamthen0ise | #6560 |
| tests/models/test_model_input_examples.py | @iamthen0ise | #6560 |
| tests/projects/test_project_spec.py | @iamthen0ise | #6560 |
| tests/pyfunc/test_model_export_with_loader_module_and_data_path.py | @dsgibbons | #6584 |
| tests/store/artifact/test_databricks_artifact_repo.py | @dsgibbons | #6584 |
| tests/store/artifact/test_ftp_artifact_repo.py | @dsgibbons | #6584 |
| ~tests/tensorflow/test_tensorflow2_autolog.py~ | - | - |
| tests/utils/test_requirements_utils.py | @dsgibbons | #6584 |
| tests/xgboost/test_xgboost_autolog.py | @dsgibbons | #6584 |
| mlflow/utils/search_utils.py | @harupy | #6534 |
| tests/entities/model_registry/test_model_version.py | @harupy | #6534 |
| tests/entities/model_registry/test_registered_model.py | @harupy | #6534 |
| tests/store/tracking/test_sqlalchemy_store.py | @harupy | #6534 |
| tests/tracking/test_model_registry.py | @harupy | #6534 |
If you’re interested in working on this issue, ping me with the file you would like to work on. Please fix only 1 ~ 3 items per pull request.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (17 by maintainers)
Commits related to this issue
- fix final batch of use-set-literal errors #6535 Signed-off-by: Daniel Gibbons <daniel.gibbons04@gmail.com> — committed to dsgibbons/mlflow by dsgibbons 2 years ago
- fix final batch of use-set-literal errors #6535 (#6584) Signed-off-by: Daniel Gibbons <daniel.gibbons04@gmail.com> Signed-off-by: Daniel Gibbons <daniel.gibbons04@gmail.com> — committed to mlflow/mlflow by dsgibbons 2 years ago
- Merge master into branch-2.0 (#6910) * Run model registry sqlalchemy tests in database job (#6353) Signed-off-by: harupy <hkawamura0130@gmail.com> * update to run profiles on the first 100 data... — committed to mlflow/mlflow by dbczumar 2 years ago
- fix final batch of use-set-literal errors #6535 (#6584) Signed-off-by: Daniel Gibbons <daniel.gibbons04@gmail.com> Signed-off-by: Daniel Gibbons <daniel.gibbons04@gmail.com> — committed to nnethery/mlflow by dsgibbons 2 years ago
@dsgibbons @iamthen0ise @Monkero Thanks for working on this issue! We have more good-first issues. Please let me know if you’re interested in working on them 😃
@dsgibbons Thanks! When you file a PR, can you remove the
IGNORED_FILESvariable?@iamthen0ise Done!
I forgot to include the items I fixed in #6534. Updated the table.
@harupy Would you mind saving the number of items you will fix for first-time contributors?
@dsgibbons Thanks for the help! I’ve updated the description. You can fix 1 ~ 3 items per pull request.