-
Notifications
You must be signed in to change notification settings - Fork 427
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
[CI Fix] Fix flake8 errors. #2039
Conversation
Sorry, that my commit to flake8-comprehensions. Meant to go and ruff on habitat-lab as well. |
@@ -38,7 +38,6 @@ def test_semantic_scene(scene, make_cfg_settings): | |||
if not osp.exists(scene): | |||
pytest.skip("Skipping {}".format(scene)) | |||
|
|||
make_cfg_settings = {k: v for k, v in make_cfg_settings.items()} |
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.
Is this suppose to be a copy()
?
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.
The make_cfg_settings
passed to the test is already a copy.
Line 25 in fed4be9
def make_cfg_settings(): |
def make_cfg_settings():
import habitat_sim.utils.settings
cfg = habitat_sim.utils.settings.default_sim_settings.copy()
{...}
return cfg
@@ -276,7 +276,6 @@ def test_smoke_no_sensors(make_cfg_settings): | |||
if not osp.exists(scene): | |||
continue | |||
scene_dataset_config = scene_and_dataset[1] | |||
make_cfg_settings = {k: v for k, v in make_cfg_settings.items()} |
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.
Likewise for here.
Motivation and Context
This fixes two flake8 errors that surfaced after a dependency upgrade.
How Has This Been Tested
Tested on CI.
Types of changes
Checklist