Skip to content

Commit

Permalink
Update css_check.py added code rabbit suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
IITI-tushar authored Jan 25, 2025
1 parent 8d57c39 commit 0e8c706
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/scripts/css_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,16 @@ def check_files(
if file_path in exclude_files:
continue

if file.endswith((".ts", ".tsx")) and "test" not in root:
if file.endswith((".ts", ".tsx")) and not any(
pattern in root
for pattern in [
"__tests__",
".test.",
".spec.",
"test/",
"tests/",
]
):
process_typescript_file(
file_path,
directory,
Expand Down

0 comments on commit 0e8c706

Please sign in to comment.