Skip to content

Instantly share code, notes, and snippets.

@iRhonin
Last active January 5, 2019 14:03
Show Gist options
  • Save iRhonin/653f0b53e7e240de7373341353745664 to your computer and use it in GitHub Desktop.
Save iRhonin/653f0b53e7e240de7373341353745664 to your computer and use it in GitHub Desktop.
Single command to use zimports on a directory

Run this command on your directory to reformat imports on a directory:

find . -iname '*.py' | tr '\n' ' '  | zimports `find . -iname '*.py' | tr '\n' ' ' ` -i

zimports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment