Skip to content

Commit

Permalink
Version 0.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hakancelikdev committed Sep 5, 2022
1 parent 7860380 commit 56f0286
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
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==0.11.2
- run: pip install --upgrade pip && python -m pip install unimport==0.11.3
shell: bash
- run: unimport --color auto --gitignore --ignore-init ${{ inputs.extra_args }}
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [0.11.3] - 5/September/2022

- Fix main.py to run unimport

## [0.11.2] - 4/September/2022

- [Fix Re complile fail mentioning 'ps_d' when using --gitignore by @hakancelikdev](https://github.com/hakancelikdev/unimport/pull/241)
Expand Down
2 changes: 1 addition & 1 deletion src/unimport/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.11.2"
__version__ = "0.11.3"
__description__ = (
"A linter, formatter for finding and removing unused import statements."
)
10 changes: 7 additions & 3 deletions src/unimport/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unimport import color, emoji
from unimport.main import Main
def main():
from unimport import color, emoji
from unimport.main import Main

if __name__ == "__main__":
main = Main.run()
if not main.is_unused_imports and main.config.check:
print(
Expand All @@ -13,3 +13,7 @@
)

raise SystemExit(main.exit_code())


if __name__ == "__main__":
main()

0 comments on commit 56f0286

Please sign in to comment.