From b862da921750a3d3d281a04e801836988c66b626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hakan=20=C3=87elik?= Date: Wed, 18 Feb 2026 13:18:56 +0300 Subject: [PATCH] Bump version to 1.3.1 and update changelog Co-Authored-By: Claude Opus 4.6 --- .pre-commit-config.yaml | 2 +- action.yml | 2 +- docs/CHANGELOG.md | 17 +++++++++++++++++ docs/index.md | 2 +- docs/tutorial/use-with-github-action.md | 2 +- pyproject.toml | 2 +- src/unimport/__init__.py | 2 +- 7 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b305246..e243fc47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: isort - repo: https://github.com/hakancelikdev/unimport - rev: 1.3.0 + rev: 1.3.1 hooks: - id: unimport diff --git a/action.yml b/action.yml index 2768f98b..fc2f1679 100644 --- a/action.yml +++ b/action.yml @@ -10,7 +10,7 @@ inputs: runs: using: "composite" steps: - - run: pip install --upgrade pip && python -m pip install unimport==1.3.0 + - run: pip install --upgrade pip && python -m pip install unimport==1.3.1 shell: bash - run: unimport --color auto --gitignore --ignore-init ${{ inputs.extra_args }} shell: bash diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ad3b34c2..7fed0ad7 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,23 @@ All notable changes to this project will be documented in this file. +## [1.3.1] - 2026-02-18 + +### Fixed + +- Fix false positive when import and usage are on the same semicolon-separated line + [#292](https://github.com/hakancelikdev/unimport/issues/292) +- Fix nested if statement dispatch not recognized (e.g. TYPE_CHECKING inside version + check) [#294](https://github.com/hakancelikdev/unimport/issues/294) +- Fix incorrect removal of runtime import shadowed by TYPE_CHECKING import + [#313](https://github.com/hakancelikdev/unimport/issues/313) +- Fix import after use in function incorrectly removed + [#178](https://github.com/hakancelikdev/unimport/issues/178) +- Fix subpackage import incorrectly removed when sibling subpackage is used + [#180](https://github.com/hakancelikdev/unimport/issues/180) +- Fix/deduplicate clashing star import suggestions +- Preserve comments when removing unused imports + ## [1.3.0] - 2025-08-01 ### Added diff --git a/docs/index.md b/docs/index.md index 01cda079..b60a534b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -29,5 +29,5 @@ process with Unimport. - **Documentation** https://unimport.hakancelik.dev/ - **Issues** https://github.com/hakancelikdev/unimport/issues/ -- **Changelog** https://unimport.hakancelik.dev/1.3.0/CHANGELOG/ +- **Changelog** https://unimport.hakancelik.dev/1.3.1/CHANGELOG/ - **Playground** https://playground-unimport.hakancelik.dev/ diff --git a/docs/tutorial/use-with-github-action.md b/docs/tutorial/use-with-github-action.md index b063f7c6..77dbaaee 100644 --- a/docs/tutorial/use-with-github-action.md +++ b/docs/tutorial/use-with-github-action.md @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v3.5.3 - uses: actions/setup-python@v4.6.1 - name: Check unused imports - uses: hakancelikdev/unimport@1.3.0 + uses: hakancelikdev/unimport@1.3.1 with: extra_args: --include src/ ``` diff --git a/pyproject.toml b/pyproject.toml index 01385ab8..a549a15f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dependencies = [ [project.urls] Documentation = "https://unimport.hakancelik.dev/" Issues = "https://github.com/hakancelikdev/unimport/issues/" -Changelog = "https://unimport.hakancelik.dev/1.3.0/CHANGELOG/" +Changelog = "https://unimport.hakancelik.dev/1.3.1/CHANGELOG/" [project.optional-dependencies] docs = [ diff --git a/src/unimport/__init__.py b/src/unimport/__init__.py index b08489ca..faa01cd0 100644 --- a/src/unimport/__init__.py +++ b/src/unimport/__init__.py @@ -1,2 +1,2 @@ -__version__ = "1.3.0" +__version__ = "1.3.1" __description__ = "A linter, formatter for finding and removing unused import statements."