Skip to content

Commit 7e28d68

Browse files
committed
Finally, version 1.0.0 is ready #271
1 parent f26c6b3 commit 7e28d68

File tree

15 files changed

+70
-46
lines changed

15 files changed

+70
-46
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2.3.4
11-
- uses: actions/setup-python@v2.1.4
10+
- uses: actions/checkout@v3.5.3
11+
- uses: actions/setup-python@v4.6.1
1212
with:
1313
python-version: "3.8"
1414
architecture: "x64"

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jobs:
44
run:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v3
7+
- uses: actions/checkout@v3.5.3
8+
- uses: actions/setup-python@v4.6.1
99
- name: Install dependencies for pre-commit
1010
run: |
1111
python -m pip install --upgrade pip

.github/workflows/pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2.3.4
11-
- uses: actions/setup-python@v2.1.4
10+
- uses: actions/checkout@v3.5.3
11+
- uses: actions/setup-python@v4.6.1
1212
with:
1313
python-version: "3.8"
1414
architecture: "x64"
@@ -29,8 +29,8 @@ jobs:
2929
publish:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v2.3.4
33-
- uses: actions/setup-python@v2.1.4
32+
- uses: actions/checkout@v3.5.3
33+
- uses: actions/setup-python@v4.6.1
3434
with:
3535
python-version: "3.8"
3636
architecture: "x64"

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
os: [ubuntu-20.04, macos-latest, windows-latest]
99
python-version: ["3.6"]
1010
steps:
11-
- uses: actions/checkout@v2.3.4
11+
- uses: actions/checkout@v3.5.3
1212

1313
- name: Set up Python${{ matrix.python-version }}
14-
uses: actions/setup-python@v2.1.4
14+
uses: actions/setup-python@v4.6.1
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
architecture: x64
@@ -32,10 +32,10 @@ jobs:
3232
os: [ubuntu-latest, macos-latest, windows-latest]
3333
python-version: ["3.7", "3.8", "3.9", "3.10"]
3434
steps:
35-
- uses: actions/checkout@v2.3.4
35+
- uses: actions/checkout@v3.5.3
3636

3737
- name: Set up Python${{ matrix.python-version }}
38-
uses: actions/setup-python@v2.1.4
38+
uses: actions/setup-python@v4.6.1
3939
with:
4040
python-version: ${{ matrix.python-version }}
4141
architecture: x64
@@ -52,10 +52,10 @@ jobs:
5252
coverage:
5353
runs-on: ubuntu-latest
5454
steps:
55-
- uses: actions/checkout@v2.3.4
55+
- uses: actions/checkout@v3.5.3
5656

5757
- name: Set up Python${{ matrix.python-version }}
58-
uses: actions/setup-python@v2.1.4
58+
uses: actions/setup-python@v4.6.1
5959
with:
6060
python-version: ${{ matrix.python-version }}
6161
architecture: x64

.github/workflows/unimport.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jobs:
44
run:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v3
7+
- uses: actions/checkout@v3.5.3
8+
- uses: actions/setup-python@v4.6.1
99
- name: unimport
1010
uses: ./
1111
with:

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ repos:
1212
- id: isort
1313

1414
- repo: https://github.com/hakancelikdev/unimport
15-
rev: 0.16.1
15+
rev: 1.0.0
1616
hooks:
1717
- id: unimport
1818

1919
- repo: https://github.com/PyCQA/docformatter
20-
rev: v1.5.1
20+
rev: v1.7.3
2121
hooks:
2222
- id: docformatter
2323
args: [--config=pyproject.toml]
2424

2525
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: v1.1.1
26+
rev: v1.4.1
2727
hooks:
2828
- id: mypy
2929
additional_dependencies: [types-toml==0.1.3]
3030

3131
- repo: https://github.com/pre-commit/mirrors-prettier
32-
rev: v3.0.0-alpha.6
32+
rev: v3.0.0
3333
hooks:
3434
- id: prettier
3535
args: [--prose-wrap=always, --print-width=88]
@@ -41,15 +41,15 @@ repos:
4141
files: "\\.(py|.txt|.yaml|.json|.in|.md|.toml|.cfg|.html|.yml)$"
4242

4343
- repo: https://github.com/asottile/pyupgrade
44-
rev: v3.3.1
44+
rev: v3.8.0
4545
hooks:
4646
- id: pyupgrade
4747
args: [--py36-plus]
4848

49-
- repo: https://github.com/hakancelikdev/pyall
50-
rev: 00a95e9fe84d9dede21c750b8edf40336ba03b3e
49+
- repo: https://github.com/hakancelikdev/unexport
50+
rev: 0.4.0
5151
hooks:
52-
- id: pyall
52+
- id: unexport
5353
args:
5454
- --refactor
5555
- --exclude=tests|setup.py|__init__.py|

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
runs:
1111
using: "composite"
1212
steps:
13-
- run: pip install --upgrade pip && python -m pip install unimport==0.16.1
13+
- run: pip install --upgrade pip && python -m pip install unimport==1.0.0
1414
shell: bash
1515
- run: unimport --color auto --gitignore --ignore-init ${{ inputs.extra_args }}
1616
shell: bash

docs/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased] - YYYY-MM-DD
66

7+
## [1.0.0] - 2023-07-07
8+
9+
### Added
10+
11+
- Automatically pick up config options from setup.cfg if it is present in the project
12+
root else check and if it exists use pyproject.toml.
13+
[#256](https://github.com/hakancelikdev/unimport/issues/256)
14+
15+
If you want you can disable this feature by passing `--disable-auto-discovery-config`
16+
17+
- Add github-action [#229](https://github.com/hakancelikdev/unimport/issues/229)
18+
- Add support like command line commands in configuration files. #287
19+
20+
### Fixed
21+
22+
- ignore-init setting is not working from command line call
23+
[#263](https://github.com/hakancelikdev/unimport/issues/263)
24+
- Running without options or a config file
25+
[#281](https://github.com/hakancelikdev/unimport/issues/281)
26+
- Attribute as import refactor #284
27+
28+
### Changed
29+
30+
- Raise more human-readable exceptions when the key is mistyped in the configuration
31+
[#286](https://github.com/hakancelikdev/unimport/issues/286)
32+
733
## [0.16.1] - 2023-07-05
834

935
### Fixed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ process with Unimport.
2929

3030
- **Documentation** https://unimport.hakancelik.dev/
3131
- **Issues** https://github.com/hakancelikdev/unimport/issues/
32-
- **Changelog** https://unimport.hakancelik.dev/CHANGELOG/
32+
- **Changelog** https://unimport.hakancelik.dev/1.0.0/CHANGELOG/
3333
- **Playground** https://playground-unimport.hakancelik.dev/

docs/tutorial/use-with-github-action.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-python@v3
10+
- uses: actions/checkout@v3.5.3
11+
- uses: actions/setup-python@v4.6.1
1212
- name: Check unused imports
1313
uses: hakancelikdev/unimport@stable
1414
with:
@@ -24,10 +24,10 @@ jobs:
2424
lint:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v3
28-
- uses: actions/setup-python@v3
27+
- uses: actions/checkout@v3.5.3
28+
- uses: actions/setup-python@v4.6.1
2929
- name: Check unused imports
30-
uses: hakancelikdev/unimport@0.16.1
30+
uses: hakancelikdev/unimport@1.0.0
3131
with:
3232
extra_args: --include src/
3333
```

0 commit comments

Comments
 (0)