Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril committed Oct 25, 2024
1 parent 510fbb0 commit 35847d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/base/test_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pandas as pd
import pytest
from arviz_base import load_arviz_data, xarray_var_iter

from arviz_stats.base import array_stats

# For tests only, recommended value should be closer to 1.01-1.05
Expand Down
5 changes: 3 additions & 2 deletions tests/base/test_stats_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
# pylint: disable=no-member,unnecessary-lambda-assignment
import numpy as np
import pytest
from arviz_stats.base.stats_utils import logsumexp as _logsumexp
from arviz_stats.base.stats_utils import make_ufunc, not_valid
from numpy.testing import assert_array_almost_equal
from scipy.special import logsumexp

from arviz_stats.base.stats_utils import logsumexp as _logsumexp
from arviz_stats.base.stats_utils import make_ufunc, not_valid


@pytest.mark.parametrize("ary_dtype", [np.float64, np.float32, np.int32, np.int64])
@pytest.mark.parametrize("axis", [None, 0, 1, (-2, -1)])
Expand Down
3 changes: 2 additions & 1 deletion tests/test_psense.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os

from arviz_base import convert_to_datatree
from arviz_stats import psense, psense_summary
from numpy import isclose
from numpy.testing import assert_almost_equal

from arviz_stats import psense, psense_summary

file_path = os.path.join(os.path.dirname(__file__), "univariate_normal.nc")
uni_dt = convert_to_datatree(file_path)

Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import numpy as np
import pytest
from arviz_base import from_dict, rcParams

from arviz_stats.base.dataarray import dataarray_stats
from arviz_stats.utils import ELPDData, get_function, get_log_likelihood

Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ isolated_build_env = build

[gh-actions]
python =
3.10: check, py310
3.10: py310
3.11: py311
3.12: py312
3.12: py312, check
3.13: py313

[testenv]
basepython =
Expand Down

0 comments on commit 35847d9

Please sign in to comment.