Skip to content

Commit

Permalink
update: add python 3.13 support (#900)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
clintonsteiner authored Jan 6, 2025
1 parent b31a086 commit 50119d6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade setuptools pip tox virtualenv
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade setuptools pip tox virtualenv
Expand All @@ -32,11 +32,11 @@ jobs:
needs: tox
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.13
- name: Install dependencies
run: pip install wheel
- name: Build package
Expand Down
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v5.0.0
hooks:
- id: check-builtin-literals
args: ['--no-allow-dict-kwargs']
Expand All @@ -11,10 +11,13 @@ repos:
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: name-tests-test
- id: trailing-whitespace
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args: ['--max-line-length', '100']
exclude: ^test_data/|bumpity.py$
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.6.1
hooks:
Expand All @@ -25,8 +28,8 @@ repos:
rev: v1.4.1
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- id: autopep8
- repo: local
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ six==1.16.0
toml==0.10.2
tox==4.23.2
tox-pip-extensions==1.6.0
typed-ast==1.5.5
types-PyYAML==6.0.12.12
types-requests==2.31.0.20240106
typing-extensions==4.12.2
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
project = detect_secrets
# These should match the ci python env list
envlist = py{39,310,311,312},mypy
envlist = py{39,310,311,312,313},mypy
skip_missing_interpreters = true

[testenv]
Expand Down

0 comments on commit 50119d6

Please sign in to comment.