Skip to content

Commit 0e8c706

Browse files
authored
Update css_check.py added code rabbit suggestion
1 parent 8d57c39 commit 0e8c706

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/scripts/css_check.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,16 @@ def check_files(
139139
if file_path in exclude_files:
140140
continue
141141

142-
if file.endswith((".ts", ".tsx")) and "test" not in root:
142+
if file.endswith((".ts", ".tsx")) and not any(
143+
pattern in root
144+
for pattern in [
145+
"__tests__",
146+
".test.",
147+
".spec.",
148+
"test/",
149+
"tests/",
150+
]
151+
):
143152
process_typescript_file(
144153
file_path,
145154
directory,

0 commit comments

Comments
 (0)