From 9cc4a75fa101e5f5df311f05622ce6f89715e46f Mon Sep 17 00:00:00 2001 From: Hakan Celik Date: Wed, 9 Nov 2022 13:53:28 +0300 Subject: [PATCH] V0.12.2 --- .pre-commit-config.yaml | 5 +++-- action.yml | 2 +- docs/CHANGELOG.md | 4 +++- docs/tutorial/use-with-github-action.md | 2 +- docs/tutorial/use-with-pre-commit.md | 6 +++++- pyproject.toml | 1 + src/unimport/__init__.py | 2 +- 7 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1196620e..00eca121 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/action.yml b/action.yml index 6c622290..3253d450 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==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 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 78ad0f2f..6d941dd2 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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 diff --git a/docs/tutorial/use-with-github-action.md b/docs/tutorial/use-with-github-action.md index 513d079c..162d1079 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 - uses: actions/setup-python@v3 - name: Check unused imports - uses: hakancelikdev/unimport@0.12.1 + uses: hakancelikdev/unimport@0.12.2 with: extra_args: --include src/ ``` diff --git a/docs/tutorial/use-with-pre-commit.md b/docs/tutorial/use-with-pre-commit.md index b1d37209..d701eeac 100644 --- a/docs/tutorial/use-with-pre-commit.md +++ b/docs/tutorial/use-with-pre-commit.md @@ -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 ``` diff --git a/pyproject.toml b/pyproject.toml index 3454dff1..9b3910e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/src/unimport/__init__.py b/src/unimport/__init__.py index 6762cbf1..dad3d79a 100644 --- a/src/unimport/__init__.py +++ b/src/unimport/__init__.py @@ -1,2 +1,2 @@ -__version__ = "0.12.1" +__version__ = "0.12.2" __description__ = "A linter, formatter for finding and removing unused import statements."