Skip to content
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

Merged
merged 1 commit into from
Mar 20, 2023
Merged

[CI Fix] Fix flake8 errors. #2039

merged 1 commit into from
Mar 20, 2023

Conversation

0mdc
Copy link
Contributor

@0mdc 0mdc commented Mar 18, 2023

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

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 18, 2023
@0mdc 0mdc requested review from Skylion007 and aclegg3 March 18, 2023 22:34
@Skylion007
Copy link
Contributor

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()}
Copy link
Contributor

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()?

Copy link
Contributor Author

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.

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()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise for here.

@0mdc 0mdc merged commit 8f9cc41 into main Mar 20, 2023
@0mdc 0mdc deleted the flake8-errors branch May 29, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants