Skip to content

Commit

Permalink
Include python3.13 and fix pyright Windows issue in CI (#19)
Browse files Browse the repository at this point in the history
* Constrain pyright version for Windows, for now

* Include python3.13

This reverts commit 727ec30.
  • Loading branch information
yanovs authored Oct 26, 2024
1 parent 1bbb73a commit 3843075
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.8']

steps:
- name: Check out code
Expand Down
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
See https://nox.thea.codes/en/stable/index.html for more.
"""

import sys

import nox
Expand Down Expand Up @@ -60,6 +61,12 @@ def mypy(session: nox.Session) -> None:

@nox.session(tags=["static", "typecheck"])
def pyright(session: nox.Session) -> None:
# TODO: Remove once pyright >= 1.1.387 is available. See:
# - https://github.com/microsoft/pyright/issues/9296
# - https://docs.python.org/3/library/sys.html#sys.platform
if sys.platform == "win32":
session.install("pyright <= 1.1.385")

if is_isolated_venv(session):
session.install("-e", ".[test]")

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: Libraries
Expand Down

0 comments on commit 3843075

Please sign in to comment.