Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
#- "3.14"
- "3.14"
os:
- ubuntu-latest
# There shouldn't be any behavior differences between OSes,
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This document outlines the list of changes to ridgeplot between each release. Fo
Unreleased changes
------------------

- Add support for Python 3.14, in accordance with the official Python support policy[^1] ({gh-pr}`346`)

### Bug fixes

- Fix the way histogram bin centers are computed ({gh-pr}`364`)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
#"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/color/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ def test_to_rgb(color: Color, expected: str) -> None:
"hex or rgb color, got 'not-a-color' instead",
),
# invalid hex
("#1234567890", ValueError, "too many values to unpack (expected 3)"),
("#1234567890", ValueError, "too many values to unpack (expected 3"),
("#ABCDEFGHIJ", ValueError, "invalid literal for int() with base 16"),
# invalid rgb
("rgb(0,0,999)", PlotlyError, "rgb colors tuples cannot exceed 255"),
# invalid tuple
((1, 2), ValueError, "not enough values to unpack (expected 3, got 2)"),
((1, 2, 3, 4), ValueError, "too many values to unpack (expected 3)"),
((1, 2, 3, 4), ValueError, "too many values to unpack (expected 3"),
],
)
def test_to_rgb_fails_for_invalid_color(
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import re
from itertools import product
from typing import TYPE_CHECKING, TypeVar

Expand Down Expand Up @@ -31,7 +32,7 @@ def test_raise_for_empty_sequence(self) -> None:

def test_raise_for_non_2d_array(self) -> None:
# Fails if one of the arrays is not 2D
with pytest.raises(ValueError, match=r"too many values to unpack \(expected 2\)"):
with pytest.raises(ValueError, match=re.escape(r"too many values to unpack (expected 2")):
get_xy_extrema(
densities=[
# valid 2D trace
Expand Down