Skip to content

Commit

Permalink
🐛 fix - Do not sort imports
Browse files Browse the repository at this point in the history
The sort_imports feature introduced has several issues. So do not use it till #287 is sorted

Request: PyInf#12353
  • Loading branch information
dshivashankar1994 authored Apr 8, 2024
1 parent 82a3fe6 commit 5fff236
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bin/tidy-imports
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,9 @@ def main():
# TODO: disable sorting until we figure out #287
# https://github.com/deshaw/pyflyby/issues/287
# sorted_imports = sort_imports(x)
sorted_imports = x
if options.canonicalize:
cannonical_imports = canonicalize_imports(sorted_imports, params=options.params)
else:
cannonical_imports = sort_imports
return cannonical_imports
x = canonicalize_imports(x, params=options.params)
return x
process_actions(args, options.actions, modify)


Expand Down

0 comments on commit 5fff236

Please sign in to comment.