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

Fix format import defaults (DJS#18151) #252

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

suganya-sk
Copy link

Note - I have a few tests failing locally on this but these tests are failing in master as well, so am assuming it's okay to raise a PR here.

Suganya Sundaravadivelu added 3 commits June 6, 2023 05:52
The default formatting output of reformat-imports and jupyterlab-pyflyby
have been modified to match that of tidy-imports.

The new expected values of unittests were generated using tidy-imports,
to ensure this match.

Ref: DJS#18151
Reviewer: dhamodha
@dshivashankar1994
Copy link
Collaborator

Checked a couple of failures. They seem to be failing because of the changes made as part of this PR

>       assert str(_reformat_helper(origin, ["import numpy as np"])) == expected
E       TypeError: _reformat_helper() missing 1 required positional argument: 'use_black'

@dshivashankar1994 dshivashankar1994 changed the title Fix format import defaults Fix format import defaults (DJS#18151) Aug 11, 2023
@dshivashankar1994 dshivashankar1994 self-requested a review August 11, 2023 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants