Skip to content

Commit 5bba268

Browse files
Deprecate Python 3.7 and update pre-commit hooks
1 parent 45fa00e commit 5bba268

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ jobs:
6262
strategy:
6363
matrix:
6464
python-version:
65-
- 3.7
6665
- 3.8
6766
- 3.9
6867
- '3.10'
69-
- pypy3
68+
- '3.11'
7069
steps:
7170
- uses: actions/checkout@v2
7271
- uses: actions/setup-python@v2

.pre-commit-config.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,30 @@ exclude: |
66
bin/.*
77
)$
88
repos:
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v4.4.0
11+
hooks:
12+
- id: debug-statements
13+
- id: check-merge-conflict
914
- repo: https://github.com/psf/black
10-
rev: 22.3.0
15+
rev: 23.3.0
1116
hooks:
1217
- id: black
1318
language_version: python3
14-
- repo: https://gitlab.com/pycqa/flake8
15-
rev: 3.8.4
19+
- repo: https://github.com/pycqa/flake8
20+
rev: 6.0.0
1621
hooks:
1722
- id: flake8
1823
- repo: https://github.com/pycqa/isort
19-
rev: 5.7.0
24+
rev: 5.12.0
2025
hooks:
2126
- id: isort
27+
- repo: https://github.com/humitos/mirrors-autoflake.git
28+
rev: v1.1
29+
hooks:
30+
- id: autoflake
31+
exclude: |
32+
(?x)^(
33+
.*/?__init__\.py|
34+
)$
35+
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"Operating System :: OS Independent",
3131
"Programming Language :: Python",
3232
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3.7",
3433
"Programming Language :: Python :: 3.8",
3534
"Programming Language :: Python :: 3.9",
3635
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
3737
"Programming Language :: Python :: Implementation :: CPython",
3838
"Programming Language :: Python :: Implementation :: PyPy",
3939
"Topic :: Software Development :: Libraries",

0 commit comments

Comments
 (0)