Skip to content

Commit c3845ac

Browse files
authored
ci: python 3.13 support (#30)
* ci: python 3.13 support * rm conda badge * conda badge
1 parent 705fa2d commit c3845ac

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
python-version: ["3.9", "3.10", "3.11", "3.12"]
41+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4242

4343
steps:
4444
- uses: actions/checkout@v4
@@ -51,9 +51,7 @@ jobs:
5151
allow-prereleases: true
5252

5353
- name: Test package and generate coverage report
54-
run:
55-
pipx run nox -s coverage-${{ matrix.python-version.key ||
56-
matrix.python-version }} --verbose
54+
run: pipx run nox -s coverage-${{ matrix.python-version }} --verbose
5755

5856
- name: Upload coverage report
5957
uses: codecov/codecov-action@v5.3.1

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ repos:
3333
- id: rst-directive-colons
3434
- id: rst-inline-touching-normal
3535

36-
- repo: https://github.com/pre-commit/mirrors-prettier
37-
rev: "v4.0.0-alpha.8"
36+
- repo: https://github.com/rbubley/mirrors-prettier
37+
rev: "v3.3.3"
3838
hooks:
3939
- id: prettier
4040
types_or: [yaml, markdown, html, css, scss, javascript, json]

noxfile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
import nox
88

99
DIR = Path(__file__).parent.resolve()
10-
ALL_PYTHON = ["3.8", "3.9", "3.10", "3.11", "3.12"]
10+
ALL_PYTHON = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1111

1212
nox.needs_version = ">=2024.3.2"
13-
nox.options.sessions = ["lint", "pylint", "tests"]
13+
nox.options.sessions = ["lint", "tests"]
1414
nox.options.default_venv_backend = "uv|virtualenv"
1515

1616

17-
@nox.session
17+
@nox.session(reuse_venv=True)
1818
def lint(session: nox.Session) -> None:
1919
"""
2020
Run the linter.
@@ -25,7 +25,7 @@ def lint(session: nox.Session) -> None:
2525
)
2626

2727

28-
@nox.session(python=ALL_PYTHON)
28+
@nox.session(reuse_venv=True, python=ALL_PYTHON)
2929
def tests(session: nox.Session) -> None:
3030
"""
3131
Run the unit and regular tests.
@@ -34,7 +34,7 @@ def tests(session: nox.Session) -> None:
3434
session.run("pytest", *session.posargs)
3535

3636

37-
@nox.session(python=ALL_PYTHON)
37+
@nox.session(reuse_venv=True, python=ALL_PYTHON)
3838
def coverage(session: nox.Session) -> None:
3939
"""Run tests and compute coverage."""
4040
session.posargs.append("--cov=cuda_histogram")
@@ -83,7 +83,7 @@ def docs(session: nox.Session) -> None:
8383
session.run("sphinx-build", "--keep-going", *shared_args)
8484

8585

86-
@nox.session
86+
@nox.session(reuse_venv=True)
8787
def build_api_docs(session: nox.Session) -> None:
8888
"""
8989
Build (regenerate) API docs.
@@ -102,7 +102,7 @@ def build_api_docs(session: nox.Session) -> None:
102102
)
103103

104104

105-
@nox.session
105+
@nox.session(reuse_venv=True)
106106
def build(session: nox.Session) -> None:
107107
"""
108108
Build an SDist and wheel.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ classifiers = [
3030
"Programming Language :: Python :: 3.10",
3131
"Programming Language :: Python :: 3.11",
3232
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
3334
"Topic :: Scientific/Engineering",
3435
"Typing :: Typed",
3536
]
@@ -113,8 +114,6 @@ disallow_incomplete_defs = true
113114

114115

115116
[tool.ruff]
116-
src = ["src"]
117-
118117
[tool.ruff.lint]
119118
extend-select = [
120119
"B", # flake8-bugbear

src/cuda_histogram/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
from __future__ import annotations
1010

1111
from cuda_histogram import axis
12+
from cuda_histogram._version import version as __version__
1213
from cuda_histogram.hist import Hist
1314

14-
from ._version import version as __version__
15-
1615
__all__: list[str] = [
1716
"Hist",
1817
"axis",

0 commit comments

Comments
 (0)