Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Add support for python 3.12 #79

Merged
merged 2 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install tox tox-gh-actions
- name: "Run lint"
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install tox tox-gh-actions
- name: "Run mypy"
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ repos:
name: Check for changes when running isort on all python files

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.10.1
hooks:
- id: black
name: Check for changes when running Black on all python files
Expand Down
19 changes: 14 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
]
Expand All @@ -39,7 +44,7 @@ test = [
"pytest-cov>=4.1.0",
]
lint = [
"black>=23.7.0",
"black>=23.10.1",
"isort[colors]>=5.12.0",
"pylint>=2.17.5",
"flake8==6.1.0",
Expand Down Expand Up @@ -77,9 +82,11 @@ legacy_tox_ini = """
[tox]
envlist =
clean,
py38
py39
py38,
py39,
py310,
py311,
py312,
lint,
type,
report
Expand All @@ -90,7 +97,9 @@ isolated_build = True
python =
3.8: py38
3.9: py39
3.10: py310, coverage, report
3.10: py310
3.11: py311, coverage, report
3.12: py312

[testenv]
description = run the test driver with {basepython}
Expand Down Expand Up @@ -128,7 +137,7 @@ deps = coverage[toml]
commands = coverage report --rcfile=pyproject.toml
# add the following to make the report fail under some percentage
# commands = coverage report --fail-under=80
depends = py310
depends = py311
"""

[tool.pytest.ini_options]
Expand Down
Loading