Skip to content

Commit cc25337

Browse files
committed
chore: python 3.13 compatibility
1 parent f631105 commit cc25337

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
paths:
1414
- '.github/workflows/build.yml'
1515
- '**/*.py'
16+
workflow_dispatch: ~
1617

1718
jobs:
1819
lint:
@@ -22,13 +23,13 @@ jobs:
2223
- uses: extractions/setup-just@v2
2324
- uses: actions/setup-python@v5
2425
with:
25-
python-version: '3.12'
26+
python-version: '3.13'
2627
- run: just install lint
2728
test:
2829
runs-on: ubuntu-latest
2930
strategy:
3031
matrix:
31-
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
32+
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
3233
steps:
3334
- uses: actions/checkout@v4
3435
- uses: extractions/setup-just@v2
@@ -44,7 +45,7 @@ jobs:
4445
- uses: extractions/setup-just@v2
4546
- uses: actions/setup-python@v5
4647
with:
47-
python-version: '3.12'
48+
python-version: '3.13'
4849
- run: just install coverage
4950
- uses: coverallsapp/github-action@v2
5051
with:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: release
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
release:
5+
types: [published]
6+
workflow_dispatch: ~
77

88
jobs:
99
release:
@@ -13,7 +13,7 @@ jobs:
1313
- uses: extractions/setup-just@v2
1414
- uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.12'
16+
python-version: '3.13'
1717
- run: just install build
1818
- name: Publish to PyPI
1919
uses: pypa/gh-action-pypi-publish@release/v1

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ isort-check:
5454

5555
# Run mypy type checking on the project
5656
mypy:
57-
{{VIRTUAL_BIN}}/mypy {{PROJECT_NAME}}/ {{TEST_DIR}}/
57+
{{VIRTUAL_BIN}}/mypy --install-types --non-interactive {{PROJECT_NAME}}/ {{TEST_DIR}}/
5858

5959
# Test the project
6060
test:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
1313
lines_after_imports = 2
1414
include_trailing_comma = true
1515
use_parentheses = true
16+
17+
[tool.mypy]
18+
disable_error_code = "import-untyped"

setup.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@
1616

1717
DEV_REQUIREMENTS = [
1818
'bandit == 1.7.*',
19-
'black == 23.*',
20-
'build == 0.10.*',
21-
'flake8 == 6.*',
19+
'black == 24.*',
20+
'build == 1.2.*',
21+
'flake8 == 7.*',
2222
'isort == 5.*',
23-
'mypy == 1.5.*',
24-
'pytest == 7.*',
25-
'pytest-cov == 4.*',
26-
'setuptools == 68.*',
27-
'twine == 4.*',
28-
'types-setuptools',
23+
'mypy == 1.12.*',
24+
'pytest == 8.*',
25+
'pytest-cov == 5.*',
26+
'setuptools >= 68',
2927
]
3028

3129
setuptools.setup(

0 commit comments

Comments
 (0)