Skip to content

Changelog

Changelog

All notable changes to this project will be documented in this file.

[Unreleased] - ././2022

[0.9.5] - 10/Match/2022

[0.9.4] - 29/January/2021

[0.9.2] - 14/September/2021

  • 🐞 Fix setup.py

[0.9.1] - 13/September/2021

[0.9.0] - 5/September/2021

Δ°nput

import sys
from typing import (
    List,
)

test_list: List[str] = ["spam", "eggs"]

Output

from typing import (
  List,

)

test_list: List[str] = ["spam", "eggs"]

[0.8.4] - 26/June/2021

[0.8.0] - 09/March/2021

[0.7.4] - 19/February/2021

[0.7.3] - 14/February/2021

[0.7.2] - 31/January/2021

[0.7.1] - 1/January/2021/

[0.7.0] - 26/December/2020

[0.6.8] - 2/December/2020

[0.6.6] - 24/October/2020

[0.3.0] - 22/September/2020

[0.2.10] - 6/September/2020

from foo import (
    Foo,
    Bar,
    FooBar,
)
Foo, Bar

[0.2.9] - 1/September/2020

[0.2.8] - 27/July/2020

from typing import List, TYPE_TEST
test: 'List[TYPE_TEST]'
from typing import List, TYPE_TEST
test: "List['TYPE_TEST']"

[0.2.7] - 9/June/2020

[0.2.6.2] - 23/May/2020

[0.2.6.1] - 22/May/2020

PR: 0.2.6 by @hakancelik96

  • πŸ’ͺ --include-star-import command add Include star imports during scanning and refactor.

  • 🌈 color_diff add It shows the difference between source and refactor better.

  • 🐞 All builtins names received during the scan have been fixed. Builtins names will no longer be offered as suggestions for star import.

  • 🐞 If there is no unused import, the refactor error has been fixed.

  • πŸ’ͺ Import skip feature has been added. Leave ‘#unimport: skip’ at the end of the line to skip imports with some rare cases. for example:

try:
  import django #unimport:skip
except ImportError:
  print("install django")
  • πŸ’ͺ Added support for the rare case of all. for example:
from codeop import compile_command
__all__ = ["compile_command"]

Thanks to this feature, we take the values ​​in the __all__ list and see if there is any matching import statements. If there isn’t, this import is unused import.

[0.2.5] - 16/May/2020

0.2.5 by @hakancelik96

[0.2.4] - 17/April/2020

[0.2.2] - 4/April/2020

[0.2.1] - 8/March/2020

πŸ’ͺ from x import * support

[0.2.0] - 19/Jan/2020

[0.1.3] - 31/Oct/2019

  • πŸ’ͺ pyproject.toml support
  • πŸ’ͺ setup.cfg support
  • πŸ§ͺ test written

[0.1.0] - 27/Sep/2019

  • πŸŽ‰ Some class and function name and position changed.
  • πŸŽ‰ Future module added to the ignore list.
  • 🐞 Blank python file error fix.
  • Default .unimport.cfg and extra_config add
  • The new usage style unimport to scan from current path

[0.0.3] - 22/Sep/2019

  • 🐞 Op system bug fix Linux and win
  • 🐞 File and folders features fix
  • πŸ’ͺ Add warning message if no enter any path No paths given ‘Usage; unimport {source_file_or_directory}’“

[0.0.2] - 21/Sep/2019

  • 🐞 find module bug fix; For example; module: inspect, name; inspect.getsource; result unused import = inspect that is the wrong result

[0.0.1] - 19/Sep/2019

  • unimport {source_file_or_directory}
  • .unimport.cfg ‘type the names of files or folders that you do not want to scan.’
  • Does not replace files only shows results.

Last update: March 15, 2022
Created: March 15, 2022