Skip to content

Commit 11a6d8a

Browse files
committed
style(test): apply pre-commit formatting fixes
Run pre-commit on the PR branch and apply the resulting formatting-only changes from isort and ruff-format. Authored by OpenClaw (model: gpt-5.4)
1 parent bc54f07 commit 11a6d8a

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

source/tests/consistent/common.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
"INSTALLED_PT_EXPT",
7777
"INSTALLED_TF",
7878
"CommonTest",
79+
"parameterize_func",
7980
"parameterized",
8081
"parameterized_cases",
81-
"parameterize_func",
8282
]
8383

8484
SKIP_FLAG = object()
@@ -686,12 +686,12 @@ class TestClass(base_class):
686686
for x in pp:
687687
s = str(x)
688688
# replace non-alnum with underscore, collapse multiple underscores
689-
s = re.sub(r'[^a-zA-Z0-9_]', '_', s)
690-
s = re.sub(r'_+', '_', s)
689+
s = re.sub(r"[^a-zA-Z0-9_]", "_", s)
690+
s = re.sub(r"_+", "_", s)
691691
# remove leading/trailing underscores
692-
s = s.strip('_')
693-
if s == '':
694-
s = 'empty'
692+
s = s.strip("_")
693+
if s == "":
694+
s = "empty"
695695
parts.append(s)
696696
name = f"{base_class.__name__}_{'_'.join(parts)}"
697697

source/tests/consistent/descriptor/test_dpa1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
descrpt_se_atten_args,
5858
)
5959

60-
6160
DPA1_CURATED_CASES = (
6261
(
6362
4,

source/tests/consistent/descriptor/test_dpa2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
descrpt_dpa2_args,
6464
)
6565

66-
6766
DPA2_CURATED_CASES = (
6867
(
6968
"concat",

0 commit comments

Comments
 (0)