Skip to content

Changelog

Changelog

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

0.12.1

πŸ› Fixes
  • Changelog url PR #250
  • Name Error PR #250

0.12.0

πŸ”₯ Features
  • Add if condition analysis and πŸ§ͺ Refactor PR #247

For example;

import sys

if sys.version_info >= (3, 8):
    from typing import Literal
else:
    from typing_extensions import Literal
  • setup.py remove and pyproject.toml was added. PR #245

0.11.3

πŸ› Fixes
  • Fix main.py to run unimport

0.11.2

πŸ› Fixes
  • Re complile fail mentioning ‘ps_d’ when using –gitignore PR #241
Internal

For Python 3.7 and above

  • Drop support for patspec, 0.5.0 above and below 0.10.0 versions.
  • Only 0.10.0 and above versions are supported, in these versions the gitignore parameter works more accurately.
  • For more accurate results when using –gitignore parameter, please do not use Python 3.6 and Windows.
πŸ“ Docs
  • Docs update
Internal
  • Refactor main.py and add tests PR #238

0.11.1

πŸ› Fixes
  • Setup

0.11.0

πŸ“ Docs
  • Update docs
Deprecated
  • Remove requirements feature PR #234

    This feature alone is not enough and can be developed as a new project using unimport, it should not be a feature of unimport.

0.10.0

πŸ› Fixes
  • Configurations flow PR #230
  • Exit code behavior PR #225
Internal
  • πŸ”₯ Support Github action PR #231

0.9.6

Internal
  • 3.10+ Support πŸ”₯ PR #26

0.9.5

πŸ› Fixes
  • Refactor: tests using pytest, fix check method PR #208

0.9.4

πŸ› Fixes
  • i199 Refactor options & commands & Option color output PR #205
Internal
  • πŸ”₯ Build an Docker image PR #202

0.9.2

πŸ› Fixes
  • setup.py

0.9.1

πŸ› Fixes
  • EOLs not being respected in modified files per PR #193
  • Respect the file’s current EOL (LF/CRLF) instead of the platform default
  • Add unit and integration tests that EOLs are respected

0.9.0

πŸ”₯ Features
  • Scope analyzer PR #189
  • Scope analyzer
  • Duplicate import feature has been enabled again.
πŸ› Fixes
  • Adding unnecessary rpar in vertical style PR #191

Δ°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

πŸ› Fixes
  • Emoji issues PR #185

0.8.0

0.7.4

πŸ› Fixes
  • list_paths in utils PR #172

0.7.3

πŸ”₯ Features
  • Add --ignore-init flag PR #169

0.7.2

πŸ”₯ Features
  • Python3.9 Support PR #166

0.7.1

πŸ› Fixes

0.7.0

πŸ”₯ Features
  • Star import more accurate suggestion PR #158
Internal
  • %15 performance increase & remove show-error flag PR #159
πŸ› Fixes
  • Fix: scanner PR #157
  • PR #155
  • Configuration Bug Fix ( Configuration priority, reading and merge )
  • %136 - %150 performance increase

0.6.8

πŸ› Fixes

0.6.6

πŸ”₯ Features
  • Support multiline skip import only py3.8 and plus PR #138
  • Support type variable PR #128
  • Support Windows OS coloring and encoding PR #116
πŸ› Fixes
  • Call attribute scanner PR #145
  • Requirements feature & star import suggestion PR #142
  • Initial imports from sys.modules PR #136
  • Import and name matcher PR #133
  • Type comment PR #130
  • Same line duplicates PR #125

0.3.0

πŸ”₯ Features
  • Configuration extend and refactoring PR #111
  • General refactoring PR #108
  • Support append and extend __all__ list
  • Star import suggestions improved
  • Support .gitignore exclude patterns PR #102
  • Support async def Issue #92
πŸ› Fixes
  • Improve: Names, Imports and star suggestion PR #112
  • Unnecessary refactoring PR #107
Internal
  • Optimize Python >=3.8 type comments support method PR #95
  • Improve test coverage PR #93

0.2.10

πŸ”₯ Features
πŸ› Fixes
  • Vertical style issue PR #86
from foo import (
    Foo,
    Bar,
    FooBar,
)
Foo, Bar

0.2.9

πŸ”₯ Features
  • Support for exit code and add some enhancement PR #81
πŸ› Fixes
  • Double underscore in builtins imports PR #82
  • Incorrect matching import and name PR #78

0.2.8

πŸ”₯ Features
  • Support: file-wide skips PR #77
  • Now, you can skip a file by typing # unimport: skip_file anywhere in that file.
  • Support: requirements.txt file PR #75
  • Now, You can automatically delete unused modules from the requirements.txt file ( unimport --requirements --remove), see the difference ( unimport --requirements --diff), delete it by requesting permission ( unimport --requirements --permission), or just check ( unimport --requirements).
  • Support for type hints (#58) & string typing PR #71
from typing import List, TYPE_TEST
test: 'List[TYPE_TEST]'
from typing import List, TYPE_TEST
test: "List['TYPE_TEST']"
πŸ› Fixes
  • Preserve import styles PR #76
  • Match error between import name and name PR #74
  • get_suggestion_modules function fix for __all__ name when import is star PR #64

Last update: September 23, 2022
Created: September 23, 2022