Skip to content

Commit 82effe4

Browse files
committed
chore: apply the ruff autofix in test_public_api (split -> rsplit)
1 parent 9ceafe2 commit 82effe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/shapiq/tests_unit/test_public_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_all_concrete_subclasses_in_all(module_path: str, base_path: str, label:
7878
exported = set(module.__all__)
7979
missing = concrete - exported
8080

81-
pkg_init = f"src/shapiq/{module_path.split('.')[-1]}/__init__.py"
81+
pkg_init = f"src/shapiq/{module_path.rsplit('.', maxsplit=1)[-1]}/__init__.py"
8282
assert not missing, (
8383
f"Concrete {label} subclasses not listed in {module_path}.__all__: "
8484
f"{missing}. Add them to {pkg_init}."

0 commit comments

Comments
 (0)