Skip to content

Commit

Permalink
chore: update ruff to 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Jan 9, 2025
1 parent f9d3763 commit 239a67d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dev-dependencies = [
"codespell ==2.3.0",
"dulwich ==0.22.7",
"mypy ==1.13.0",
"ruff ==0.8.6",
"ruff ==0.9.0",
"starry-bpy-typings",
"tqdm ==4.67.1",
"types-tqdm ==4.67.0.20241221",
Expand Down
2 changes: 1 addition & 1 deletion src/io_scene_vrm/editor/spring_bone1/property_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ def fix_index(self, context: Context) -> None:
if collider_group.search_one_time_uuid != self.search_one_time_uuid:
continue

name = f"{self.vrm_name} #{index+1}"
name = f"{self.vrm_name} #{index + 1}"
self.name = name

for spring in spring_bone.springs:
Expand Down
6 changes: 3 additions & 3 deletions tests/blender_test_load_human_bone_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def test(context: Context) -> None:
for human_bone in get_armature_extension(data).vrm0.humanoid.human_bones
if human_bone.bone == "head"
)
assert (
b.node.bone_name == new_head_name
), f"head is expected to {new_head_name} but {b.node.bone_name}"
assert b.node.bone_name == new_head_name, (
f"head is expected to {new_head_name} but {b.node.bone_name}"
)


if __name__ == "__main__":
Expand Down
6 changes: 3 additions & 3 deletions tests/blender_test_setup_vrm0_bones.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def test_head_bone_world_plus_z(context: Context) -> None:
message = "head has no parent"
raise AssertionError(message)

assert (
head.length - parent.length
) < 0.0001, f"head length {head.length} is same as neck length {parent.length}"
assert (head.length - parent.length) < 0.0001, (
f"head length {head.length} is same as neck length {parent.length}"
)


def test_multiple_children_right_toes_direction_is_same_as_foot(
Expand Down
40 changes: 20 additions & 20 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 239a67d

Please sign in to comment.