Skip to content

Commit 696027c

Browse files
committed
tests working with pandas>=3
1 parent d50a92b commit 696027c

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

hatch.toml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,21 @@ template = "tests"
6565
installer = "uv pip install"
6666
description = "Run the tests suite"
6767
dependency-groups = ["tests"]
68-
extra-dependencies = [
69-
"seaborn=={matrix:seaborn_version}",
70-
]
7168

7269
[[envs.tests.matrix]]
7370
python = ["3.10", "3.11", "3.12", "3.13", "3.14"]
74-
seaborn_version = ["0.11", "0.12", "0.13"]
71+
seaborn = ["0.11", "0.12", "0.13"]
7572

7673
[envs.tests.overrides]
77-
matrix.seaborn_version.extra-dependencies = [
78-
"seaborn=={matrix:seaborn_version}",
74+
matrix.seaborn.extra-dependencies = [
75+
"seaborn~={matrix:seaborn}",
7976
{ value = "matplotlib<3.9", if = ["0.11"]},
8077
{ value = "pandas<2", if = ["0.11", "0.12"]},
81-
# TODO: remove when https://github.com/mwaskom/seaborn/issues/3647 is fixed in seaborn
82-
{ value = "pandas<3", if = ["0.13"]},
8378
{ value = "numpy<2", if = ["0.11", "0.12"]},
8479
]
8580

8681
[envs.tests.env-vars]
87-
COVERAGE_FILE = "report/.coverage.{matrix:python}-{matrix:seaborn_version}"
82+
COVERAGE_FILE = "report/.coverage.{matrix:python}-{matrix:seaborn}"
8883
COVERAGE_PROCESS_START = "pyproject.toml"
8984
_COVERAGE_SRC = "statannotations"
9085

@@ -127,18 +122,14 @@ run = [
127122
template = "examples"
128123
installer = "uv pip install"
129124
description = "Run the examples"
130-
python = "3.11"
131-
extra-dependencies = [
132-
"matplotlib<3.9",
133-
"seaborn=={matrix:seaborn_version}",
134-
]
135125

136126
[[envs.examples.matrix]]
137-
seaborn_version = ["0.11", "0.12", "0.13"]
127+
python = ["3.10", "3.11", "3.12", "3.13", "3.14"]
128+
seaborn = ["0.11", "0.12", "0.13"]
138129

139130
[envs.examples.overrides]
140-
matrix.seaborn_version.extra-dependencies = [
141-
"seaborn=={matrix:seaborn_version}",
131+
matrix.seaborn.extra-dependencies = [
132+
"seaborn~={matrix:seaborn}",
142133
{ value = "matplotlib<3.9", if = ["0.11"]},
143134
{ value = "pandas<2", if = ["0.11", "0.12"]},
144135
{ value = "numpy<2", if = ["0.11", "0.12"]},

tests/test_positions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_seaborn_violinplot(self):
4141

4242
value_maxes = self.annot._plotter.value_maxes
4343
assert ("Sun", "Male") in value_maxes
44-
assert value_maxes[("Sun", "Male")] > 0.80
44+
assert value_maxes[("Sun", "Male")] > 0.7
4545

4646
def test_seaborn_all_plots(self):
4747
for plotter in IMPLEMENTED_PLOTTERS["seaborn"]:

0 commit comments

Comments
 (0)