Skip to content

Commit f46cb8c

Browse files
committed
Add Python 3.13 support & drop python 3.8 & upgrade package version
1 parent 563fb26 commit f46cb8c

File tree

99 files changed

+482
-7071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+482
-7071
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/[email protected]
1111
- uses: actions/[email protected]
1212
with:
13-
python-version: "3.12"
13+
python-version: "3.13"
1414
architecture: "x64"
1515

1616
- name: Install Dependencies

.github/workflows/pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/[email protected]
1111
- uses: actions/[email protected]
1212
with:
13-
python-version: "3.12"
13+
python-version: "3.13"
1414
architecture: "x64"
1515

1616
- name: Install Dependencies
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/[email protected]
3333
- uses: actions/[email protected]
3434
with:
35-
python-version: "3.12"
35+
python-version: "3.13"
3636
architecture: "x64"
3737

3838
- name: Install Dependencies

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
matrix:
88
os: [ubuntu-latest, macos-latest, windows-latest]
9-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
9+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1010
steps:
1111
- uses: actions/[email protected]
1212

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ exclude: tests/cases/(refactor|source).*
22

33
repos:
44
- repo: https://github.com/psf/black
5-
rev: 23.12.1
5+
rev: 25.1.0
66
hooks:
77
- id: black
88

99
- repo: https://github.com/PyCQA/isort
10-
rev: 5.13.2
10+
rev: 6.0.1
1111
hooks:
1212
- id: isort
1313

@@ -17,7 +17,7 @@ repos:
1717
- id: unimport
1818

1919
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v1.8.0
20+
rev: v1.17.1
2121
hooks:
2222
- id: mypy
2323
additional_dependencies: [types-toml==0.1.3]
@@ -29,16 +29,16 @@ repos:
2929
args: [--prose-wrap=always, --print-width=88]
3030

3131
- repo: https://github.com/pre-commit/pre-commit-hooks
32-
rev: v4.5.0
32+
rev: v5.0.0
3333
hooks:
3434
- id: end-of-file-fixer
3535
files: "\\.(py|.txt|.yaml|.json|.in|.md|.toml|.cfg|.html|.yml)$"
3636

3737
- repo: https://github.com/asottile/pyupgrade
38-
rev: v3.15.0
38+
rev: v3.20.0
3939
hooks:
4040
- id: pyupgrade
41-
args: [--py38-plus]
41+
args: [--py39-plus]
4242

4343
- repo: https://github.com/hakancelikdev/unexport
4444
rev: 0.4.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-alpine
1+
FROM python:3.13-alpine
22

33
COPY . /app
44
WORKDIR /app

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![unimport](https://raw.githubusercontent.com/hakancelikdev/unimport/main/docs/assets/logo/unimport.png)
1+
![unimport](/docs/assets/logo/unimport.png)
22

33
**🚀 The ultimate linter and formatter for removing unused import statements in your
44
code.**

docs/CHANGELOG.md

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

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

7+
### Added
8+
- Python 3.13 support added
9+
10+
### Changed
11+
12+
- Python 3.8 support dropped
13+
- Updated minimum Python version requirement from 3.8+ to 3.9+
14+
- Removed Python 3.8 from CI/CD pipeline and testing environments
15+
- Updated all configuration files to reflect Python 3.9+ support
16+
- Upgraded all package versions in use
17+
18+
### Fixed
19+
20+
- Replace deprecated lib2to3 imports with ast module in test cases
21+
- Fixed deprecation warning in Python 3.10+ compatibility
22+
- Updated test cases to use modern ast module instead of deprecated lib2to3 package
23+
- All tests now pass without deprecation warnings
24+
725
## [1.2.1] - 2023-12-24
826

927
### Added

docs/CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ $ git rebase upstream/main
3535

3636
## Testing
3737

38-
First, make sure you have at least one of the python versions py3.8, py3.9, py3.10,
39-
py3.11 and py3.12 If not all versions are available, after opening PR, github action
40-
will run the tests for each version, so you can be sure that you wrote the correct code.
41-
You can skip the tox step below.
38+
First, make sure you have at least one of the python versions py3.9, py3.10, py3.11, py3.12 and
39+
py3.13 If not all versions are available, after opening PR, github action will run the
40+
tests for each version, so you can be sure that you wrote the correct code. You can skip
41+
the tox step below.
4242

4343
After typing your codes, you should run the tests by typing the following command.
4444

4545
```shell
46-
$ python3.12 -m pip install tox
46+
$ python3.13 -m pip install tox
4747
$ tox
4848
```
4949

docs/assets/logo/icon.png

289 KB
Loading

docs/assets/logo/unimport.ai

Lines changed: 0 additions & 6629 deletions
This file was deleted.

0 commit comments

Comments
 (0)