Skip to content

Commit 237d71c

Browse files
chore(deps-dev): bump ruff from 0.8.6 to 0.11.4 (#308)
* chore(deps-dev): bump ruff from 0.8.6 to 0.11.4 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.11.4. - [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.8.6...0.11.4) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.11.4 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * style: Format code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AlexNg <contact@ngjx.org>
1 parent 6a114dc commit 237d71c

File tree

5 files changed

+32
-31
lines changed

5 files changed

+32
-31
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typing-extensions = "^4.9.0"
4545

4646
[tool.poetry.group.dev.dependencies]
4747
pytest = ">=7.4.3,<9.0.0"
48-
ruff = ">=0.1.5,<0.9.0"
48+
ruff = ">=0.1.5,<0.15.0"
4949

5050
[build-system]
5151
requires = ["poetry-core"]

src/thread/utils/algorithm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def chunk_split(
3535
------
3636
AssertionError: The number of chunks specified is larger than the dataset size
3737
"""
38-
assert (
39-
dataset_length >= number_of_chunks
40-
), 'The number of chunks specified is larger than the dataset size'
38+
assert dataset_length >= number_of_chunks, (
39+
'The number of chunks specified is larger than the dataset size'
40+
)
4141

4242
chunk_count = dataset_length // number_of_chunks
4343
overflow = dataset_length % number_of_chunks

tests/library/test_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ def test_versionIsString():
77

88

99
def test_versionIsSemVer():
10-
assert re.match(
11-
r'^\d+\.\d+\..+$', thread.__version__
12-
), 'thread.__version__ is not a semver'
10+
assert re.match(r'^\d+\.\d+\..+$', thread.__version__), (
11+
'thread.__version__ is not a semver'
12+
)

tests/test_algorithm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def test_chunking_dynamic():
4242
chunk_length = expected_chunk_length_low + int(expected_chunk_high > 0)
4343
b = i + chunk_length
4444

45-
assert (
46-
next(gen) == (i, b)
47-
), f'\nIndex: {i}\nLength: {dataset_length}\nThreads: {thread_count}\nExpected: {(i, b)}\nActual: {next(gen)}'
45+
assert next(gen) == (i, b), (
46+
f'\nIndex: {i}\nLength: {dataset_length}\nThreads: {thread_count}\nExpected: {(i, b)}\nActual: {next(gen)}'
47+
)
4848
expected_chunk_high -= 1
4949
i = b

0 commit comments

Comments
 (0)