Skip to content

Commit e78cf01

Browse files
dependabot[bot]Copilotnikdon
authored
build: bump ruff from 0.12.11 to 0.14.3 (#147)
* build: bump ruff from 0.12.11 to 0.14.3 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.11 to 0.14.3. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.12.11...0.14.3) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.14.3 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix ruff 0.14.3 compatibility and add Python 3.13 support (#148) * Initial plan * Initial plan for resolving library update issues Co-authored-by: nikdon <4712507+nikdon@users.noreply.github.com> * Fix ruff linting errors and add Python 3.13 support Co-authored-by: nikdon <4712507+nikdon@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nikdon <4712507+nikdon@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: nikdon <4712507+nikdon@users.noreply.github.com>
1 parent c6a48d0 commit e78cf01

File tree

6 files changed

+28
-26
lines changed

6 files changed

+28
-26
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![py310 status](https://img.shields.io/badge/python3.10-supported-green.svg)
55
![py311 status](https://img.shields.io/badge/python3.11-supported-green.svg)
66
![py312 status](https://img.shields.io/badge/python3.12-supported-green.svg)
7+
![py313 status](https://img.shields.io/badge/python3.13-supported-green.svg)
78

89
1. [Quick start](#quick-start)
910
2. [Usage](#usage)

poetry.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyentrp/entropy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def weighted_permutation_entropy(time_series, order=2, delay=1, normalize=False)
393393
sorted_idx = x.argsort(kind="quicksort", axis=1)
394394

395395
motif_weights = {}
396-
for weight, indices in zip(weights, sorted_idx): # noqa: B905
396+
for weight, indices in zip(weights, sorted_idx):
397397
motif = tuple(indices)
398398
if motif in motif_weights:
399399
motif_weights[motif] += weight

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ codecov = "^2.1.13"
2424
commitizen = ">=3.2.2,<5.0.0"
2525
coverage = "^7.10.7"
2626
pre-commit = ">=3.3.2,<5.0.0"
27-
ruff = ">=0.5.0,<0.12.12"
27+
ruff = ">=0.5.0,<0.14.4"
2828

2929

3030
[tool.commitizen]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Programming Language :: Python :: 3.10",
3939
"Programming Language :: Python :: 3.11",
4040
"Programming Language :: Python :: 3.12",
41+
"Programming Language :: Python :: 3.13",
4142
"Topic :: Scientific/Engineering :: Bio-Informatics",
4243
"Topic :: Scientific/Engineering :: Information Analysis",
4344
"Topic :: Scientific/Engineering :: Mathematics",

tests/test_entropy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def test_multiscale_permutation_entropy(self):
9292
)
9393

9494
def test_util_pattern_space(self):
95-
self.assertRaises(Exception, ent.util_pattern_space, (TIME_SERIES, 0, 2))
96-
self.assertRaises(Exception, ent.util_pattern_space, (TIME_SERIES, 10, 20))
95+
self.assertRaises(ValueError, ent.util_pattern_space, TIME_SERIES, 0, 2)
96+
self.assertRaises(ValueError, ent.util_pattern_space, TIME_SERIES, 10, 20)
9797
np.testing.assert_array_equal(
9898
ent.util_pattern_space(TIME_SERIES, 2, 3),
9999
np.array([[1, 1, 3], [1, 2, 4], [1, 3, 5]]),

0 commit comments

Comments
 (0)