Skip to content

Commit

Permalink
V0.12.2 (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakancelikdev authored Nov 9, 2022
1 parent 543f509 commit 004b5dd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ repos:
- id: isort

- repo: https://github.com/hakancelikdev/unimport
rev: 0.12.1
rev: 0.12.2
hooks:
- id: unimport
args: [--config=pyproject.toml]
args:
- --config pyproject.toml

- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
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==0.12.1
- run: pip install --upgrade pip && python -m pip install unimport==0.12.2
shell: bash
- run: unimport --color auto --gitignore --ignore-init ${{ inputs.extra_args }}
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

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

## [Unreleased] - ././
## [Unreleased] - YYYY-MM-DD

## [0.12.2] - 2022-11-09

### 🐛 Fixes

Expand Down
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
- uses: actions/setup-python@v3
- name: Check unused imports
uses: hakancelikdev/[email protected].1
uses: hakancelikdev/[email protected].2
with:
extra_args: --include src/
```
6 changes: 5 additions & 1 deletion docs/tutorial/use-with-pre-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ repos:
rev: stable
hooks:
- id: unimport
args: [--remove, --include-star-import, --ignore-init, --gitignore]
args:
- --remove
- --include-star-import
- --ignore-init
- --gitignore
```
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
remove = true
include_start_import = true
ignore_init = true
gitignore = true

[tool.docformatter]
recursive = true
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__ = "0.12.1"
__version__ = "0.12.2"
__description__ = "A linter, formatter for finding and removing unused import statements."

0 comments on commit 004b5dd

Please sign in to comment.