Skip to content

Commit

Permalink
chore: python 3.13 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Oct 15, 2024
1 parent 89d3be4 commit 4003a89
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
paths:
- '.github/workflows/build.yml'
- '**/*.py'
workflow_dispatch: ~

jobs:
lint:
Expand All @@ -22,13 +23,13 @@ jobs:
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- run: just install lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
Expand All @@ -44,7 +45,7 @@ jobs:
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- run: just install coverage
- uses: coverallsapp/github-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ run:

# Run mypy type checking on the project
mypy:
{{VIRTUAL_BIN}}/mypy {{PROJECT_NAME}}/ {{TEST_DIR}}/ {{SCRIPTS_DIR}}/
{{VIRTUAL_BIN}}/mypy --install-types --non-interactive {{PROJECT_NAME}}/ {{TEST_DIR}}/ {{SCRIPTS_DIR}}/

# Test the project
test:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
lines_after_imports = 2
include_trailing_comma = true
use_parentheses = true

[tool.mypy]
disable_error_code = "import-untyped"
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'sentry-sdk == 2.*',
'slack_sdk == 3.*',
'sqlitedict == 2.1.*',
'uwsgi == 2.0.26',
'uwsgi == 2.0.27',
'woodchips == 1.*',
]

Expand All @@ -34,13 +34,10 @@
'build == 1.2.*',
'flake8 == 7.*',
'isort == 5.*',
'mypy == 1.10.*',
'mypy == 1.12.*',
'pytest == 8.*',
'pytest-cov == 5.*',
'twine == 5.*',
'types-PyYAML',
'types-requests',
'wheel == 0.43.*',
'wheel == 0.43.*', # Needed to build uwsgi
]

setuptools.setup(
Expand Down

0 comments on commit 4003a89

Please sign in to comment.