Skip to content

Commit

Permalink
Support python 3.11 (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: KotlinIsland <[email protected]>
  • Loading branch information
KotlinIsland and KotlinIsland authored Feb 17, 2023
1 parent c2d085c commit 06bfed7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
python-version:
- "pypy-3.8-v7.3.10"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
Expand All @@ -25,7 +26,7 @@ jobs:
- name: Setup Python for tox
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install tox
run: python -m pip install tox tox-gh-actions
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/do-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python for linting
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install tox
run: python -m pip install tox tox-gh-actions
- uses: actions/checkout@v3
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers=[
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
Expand Down Expand Up @@ -135,7 +136,7 @@ output = 'coverage.xml'

[tool.black]
line-length = 79
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'
exclude = '''
/(
Expand Down Expand Up @@ -174,6 +175,7 @@ envlist =
py38
py39
py310
py311
pypy3
coverage
style
Expand All @@ -187,6 +189,7 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-3.8: pypy3
[testenv]
Expand Down Expand Up @@ -223,7 +226,7 @@ commands =
coverage combine
coverage report -m
coverage xml -o {toxworkdir}/coverage.xml
depends = py37, py38, py39, py310, pypy3
depends = py37, py38, py39, py310, py311, pypy3
[testenv:style]
description = run autoformatters and style checkers
Expand Down

0 comments on commit 06bfed7

Please sign in to comment.