Skip to content

Commit 6945e95

Browse files
committed
chore(pre-commit): bump unimport hook from 1.2.1 → 1.3.0 for Python 3.13 support
1 parent 724f5b9 commit 6945e95

File tree

7 files changed

+48
-30
lines changed

7 files changed

+48
-30
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
build:
1313
name: Build and deploy documentation
1414
runs-on: ubuntu-latest
15-
15+
1616
permissions:
1717
contents: write
1818
pages: write
1919
id-token: write
20-
20+
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4
@@ -29,13 +29,15 @@ jobs:
2929
with:
3030
python-version: ${{ env.PYTHON_VERSION }}
3131
architecture: x64
32-
cache: 'pip'
32+
cache: "pip"
3333

3434
- name: Cache pip dependencies
3535
uses: actions/cache@v4
3636
with:
3737
path: ~/.cache/pip
38-
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/pyproject.toml') }}
38+
key:
39+
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{
40+
hashFiles('**/pyproject.toml') }}
3941
restore-keys: |
4042
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-
4143

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
pre-commit:
99
name: Run pre-commit checks
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
@@ -20,13 +20,15 @@ jobs:
2020
with:
2121
python-version: ${{ env.PYTHON_VERSION }}
2222
architecture: x64
23-
cache: 'pip'
23+
cache: "pip"
2424

2525
- name: Cache pip dependencies
2626
uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pip
29-
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/pyproject.toml') }}
29+
key:
30+
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{
31+
hashFiles('**/pyproject.toml') }}
3032
restore-keys: |
3133
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-
3234

.github/workflows/pypi.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
test:
1313
name: Test package build
1414
runs-on: ubuntu-latest
15-
15+
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
@@ -22,13 +22,15 @@ jobs:
2222
with:
2323
python-version: ${{ env.PYTHON_VERSION }}
2424
architecture: x64
25-
cache: 'pip'
25+
cache: "pip"
2626

2727
- name: Cache pip dependencies
2828
uses: actions/cache@v4
2929
with:
3030
path: ~/.cache/pip
31-
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/pyproject.toml') }}
31+
key:
32+
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{
33+
hashFiles('**/pyproject.toml') }}
3234
restore-keys: |
3335
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-
3436
@@ -54,7 +56,7 @@ jobs:
5456
runs-on: ubuntu-latest
5557
needs: test
5658
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
57-
59+
5860
steps:
5961
- name: Checkout code
6062
uses: actions/checkout@v4
@@ -64,13 +66,15 @@ jobs:
6466
with:
6567
python-version: ${{ env.PYTHON_VERSION }}
6668
architecture: x64
67-
cache: 'pip'
69+
cache: "pip"
6870

6971
- name: Cache pip dependencies
7072
uses: actions/cache@v4
7173
with:
7274
path: ~/.cache/pip
73-
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/pyproject.toml') }}
75+
key:
76+
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{
77+
hashFiles('**/pyproject.toml') }}
7478
restore-keys: |
7579
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-
7680

.github/workflows/test-legacy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
os: [ubuntu-latest, windows-latest]
1313
python-version: ["3.9", "3.10"]
14-
14+
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
@@ -23,13 +23,15 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
architecture: x64
26-
cache: 'pip'
26+
cache: "pip"
2727

2828
- name: Cache pip dependencies
2929
uses: actions/cache@v4
3030
with:
3131
path: ~/.cache/pip
32-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
32+
key:
33+
${{ runner.os }}-pip-${{ matrix.python-version }}-${{
34+
hashFiles('**/pyproject.toml') }}
3335
restore-keys: |
3436
${{ runner.os }}-pip-${{ matrix.python-version }}-
3537
@@ -49,7 +51,7 @@ jobs:
4951
fail-fast: false
5052
matrix:
5153
python-version: ["3.9", "3.10"]
52-
54+
5355
steps:
5456
- name: Checkout code
5557
uses: actions/checkout@v4
@@ -61,13 +63,15 @@ jobs:
6163
with:
6264
python-version: ${{ matrix.python-version }}
6365
# No architecture specified for macOS with Python <3.11 to avoid arm64 issues
64-
cache: 'pip'
66+
cache: "pip"
6567

6668
- name: Cache pip dependencies
6769
uses: actions/cache@v4
6870
with:
6971
path: ~/.cache/pip
70-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
72+
key:
73+
${{ runner.os }}-pip-${{ matrix.python-version }}-${{
74+
hashFiles('**/pyproject.toml') }}
7175
restore-keys: |
7276
${{ runner.os }}-pip-${{ matrix.python-version }}-
7377
@@ -78,4 +82,4 @@ jobs:
7882
7983
- name: Run tests with tox
8084
run: tox -e ${{ matrix.python-version }}
81-
timeout-minutes: 10
85+
timeout-minutes: 10

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616
python-version: ["3.11", "3.12", "3.13"]
17-
17+
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
@@ -26,13 +26,15 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
architecture: x64
29-
cache: 'pip'
29+
cache: "pip"
3030

3131
- name: Cache pip dependencies
3232
uses: actions/cache@v4
3333
with:
3434
path: ~/.cache/pip
35-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
35+
key:
36+
${{ runner.os }}-pip-${{ matrix.python-version }}-${{
37+
hashFiles('**/pyproject.toml') }}
3638
restore-keys: |
3739
${{ runner.os }}-pip-${{ matrix.python-version }}-
3840
@@ -50,7 +52,7 @@ jobs:
5052
runs-on: ubuntu-latest
5153
needs: test
5254
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
53-
55+
5456
steps:
5557
- name: Checkout code
5658
uses: actions/checkout@v4
@@ -60,13 +62,15 @@ jobs:
6062
with:
6163
python-version: ${{ env.PYTHON_VERSION }}
6264
architecture: x64
63-
cache: 'pip'
65+
cache: "pip"
6466

6567
- name: Cache pip dependencies
6668
uses: actions/cache@v4
6769
with:
6870
path: ~/.cache/pip
69-
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/pyproject.toml') }}
71+
key:
72+
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{
73+
hashFiles('**/pyproject.toml') }}
7074
restore-keys: |
7175
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-
7276

.github/workflows/unimport.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
unimport:
99
name: Check for unused imports
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
@@ -20,13 +20,15 @@ jobs:
2020
with:
2121
python-version: ${{ env.PYTHON_VERSION }}
2222
architecture: x64
23-
cache: 'pip'
23+
cache: "pip"
2424

2525
- name: Cache pip dependencies
2626
uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pip
29-
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/pyproject.toml') }}
29+
key:
30+
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{
31+
hashFiles('**/pyproject.toml') }}
3032
restore-keys: |
3133
${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-
3234

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: isort
1313

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

0 commit comments

Comments
 (0)