Skip to content

Commit 50119d6

Browse files
update: add python 3.13 support (#900)
* update: add python 3.13 support * tox: add in python 3.13 * ci: add in fixes causing failing ci * requirements: remove typed-ast as EOL as of python 3.7 * pre-commit: bump to work with new python version * pre-commit: other fixes * pre-commit: remove add trailing comma - conflicts with autopep8 * pre-commit: fix duplicated autopep8 repo * Revert "pre-commit: remove add trailing comma - conflicts with autopep8" This reverts commit 853c465.
1 parent b31a086 commit 50119d6

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python: ['3.9', '3.10', '3.11', '3.12']
20+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
2121
steps:
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-python@v2
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python }}
2626
- run: python -m pip install --upgrade setuptools pip tox virtualenv

.github/workflows/pypi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest]
18-
python: ['3.9', '3.10', '3.11', '3.12']
18+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
1919
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-python@v2
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python }}
2424
- run: python -m pip install --upgrade setuptools pip tox virtualenv
@@ -32,11 +32,11 @@ jobs:
3232
needs: tox
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3636
- name: Set up Python
37-
uses: actions/setup-python@v2
37+
uses: actions/setup-python@v5
3838
with:
39-
python-version: 3.8
39+
python-version: 3.13
4040
- name: Install dependencies
4141
run: pip install wheel
4242
- name: Build package

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-builtin-literals
66
args: ['--no-allow-dict-kwargs']
@@ -11,10 +11,13 @@ repos:
1111
- id: double-quote-string-fixer
1212
- id: end-of-file-fixer
1313
- id: name-tests-test
14+
- id: trailing-whitespace
15+
- repo: https://github.com/PyCQA/flake8
16+
rev: 7.1.1
17+
hooks:
1418
- id: flake8
1519
args: ['--max-line-length', '100']
1620
exclude: ^test_data/|bumpity.py$
17-
- id: trailing-whitespace
1821
- repo: https://github.com/asottile/reorder_python_imports
1922
rev: v1.6.1
2023
hooks:
@@ -25,8 +28,8 @@ repos:
2528
rev: v1.4.1
2629
hooks:
2730
- id: add-trailing-comma
28-
- repo: https://github.com/pre-commit/mirrors-autopep8
29-
rev: v1.4.4
31+
- repo: https://github.com/hhatto/autopep8
32+
rev: v2.3.1
3033
hooks:
3134
- id: autopep8
3235
- repo: local

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ six==1.16.0
3333
toml==0.10.2
3434
tox==4.23.2
3535
tox-pip-extensions==1.6.0
36-
typed-ast==1.5.5
3736
types-PyYAML==6.0.12.12
3837
types-requests==2.31.0.20240106
3938
typing-extensions==4.12.2

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
project = detect_secrets
33
# These should match the ci python env list
4-
envlist = py{39,310,311,312},mypy
4+
envlist = py{39,310,311,312,313},mypy
55
skip_missing_interpreters = true
66

77
[testenv]

0 commit comments

Comments
 (0)