Skip to content

Commit 55699a7

Browse files
authored
ci: allow .clang-tidy and fix exception type in guidelines check (#4818)
Signed-off-by: zhenweijin <zhenwei.jin@intel.com>
1 parent f3c1c92 commit 55699a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/coding_guidelines_check.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def run_clang_format_diff(root: Path, commits: str) -> bool:
159159
found = True
160160
else:
161161
return not found
162-
except subprocess.subprocess.CalledProcessError:
162+
except subprocess.CalledProcessError:
163163
return False
164164

165165

@@ -183,12 +183,14 @@ def check_file_name(path: Path) -> bool:
183183
- docker-compose
184184
- package-lock
185185
- vite-env.d
186+
- .clang-tidy (standard config file for Clang-Tidy)
186187
"""
187188
if path.stem in [
188189
"docker-compose",
189190
"package-lock",
190191
"vite-env.d",
191192
"osv-scanner",
193+
".clang-tidy",
192194
]:
193195
return True
194196

0 commit comments

Comments
 (0)