Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: isort

- repo: https://github.com/hakancelikdev/unimport
rev: 1.3.0
rev: 1.3.1
hooks:
- id: unimport

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion docs/tutorial/use-with-github-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/unimport/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "1.3.0"
__version__ = "1.3.1"
__description__ = "A linter, formatter for finding and removing unused import statements."
Loading