This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch tirx/standalone-package-cleanup
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit 64ac09abdacdb28ff12a6560e37abe377103113a
Author: Tianqi Chen <[email protected]>
AuthorDate: Thu Oct 15 02:10:47 2026 +0000

    [FIX][Lint] Apply repository lint ownership to the extracted tree
---
 .pre-commit-config.yaml        | 8 ++++----
 tests/lint/check_asf_header.py | 1 +
 tests/lint/check_file_type.py  | 4 ++--
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c76f80bf57..ec8c900505 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,13 +53,13 @@ repos:
       - id: check-merge-conflict
       - id: check-symlinks
       - id: end-of-file-fixer
-        exclude: ^3rdparty/
+        exclude: ^(tirx/)?3rdparty/
       - id: mixed-line-ending
-        exclude: ^3rdparty/
+        exclude: ^(tirx/)?3rdparty/
       - id: requirements-txt-fixer
         exclude: ^docker/python/bootstrap
       - id: trailing-whitespace
-        exclude: ^3rdparty/
+        exclude: ^(tirx/)?3rdparty/
       - id: check-yaml
       - id: check-toml
 
@@ -95,7 +95,7 @@ repos:
     hooks:
       - id: clang-format
         types_or: [c, c++, cuda, objective-c++]
-        exclude: ^3rdparty/
+        exclude: ^(tirx/)?3rdparty/
 
   # ---------- Cython ----------
   - repo: https://github.com/MarcoGorelli/cython-lint
diff --git a/tests/lint/check_asf_header.py b/tests/lint/check_asf_header.py
index d6237c600a..9cc1ebf73a 100644
--- a/tests/lint/check_asf_header.py
+++ b/tests/lint/check_asf_header.py
@@ -183,6 +183,7 @@ FMT_MAP = {
 # Files and patterns to skip (3rdparty, generated files, etc.).
 SKIP_LIST: list[str] = [
     "3rdparty/*",
+    "tirx/3rdparty/*",
     "ffi/3rdparty/*",
     ".github/*",
     ".txdev/*",
diff --git a/tests/lint/check_file_type.py b/tests/lint/check_file_type.py
index 9318cf8b6c..9d301bec18 100644
--- a/tests/lint/check_file_type.py
+++ b/tests/lint/check_file_type.py
@@ -93,7 +93,7 @@ ALLOW_FILE_NAME = {
 }
 
 # List of specific files allowed in relpath to <proj_root>
-ALLOW_SPECIFIC_FILE = {"LICENSE", "NOTICE", "KEYS"}
+ALLOW_SPECIFIC_FILE = {"LICENSE", "NOTICE", "KEYS", "tirx/LICENSE", 
"tirx/NOTICE"}
 
 
 def filename_allowed(name: str) -> bool:
@@ -121,7 +121,7 @@ def filename_allowed(name: str) -> bool:
     if basename == "Dockerfile" or basename.startswith("Dockerfile."):
         return True
 
-    if name.startswith("3rdparty"):
+    if name.startswith(("3rdparty", "tirx/3rdparty")):
         return True
 
     if name.startswith(".txdev") or name.startswith(".claude"):

Reply via email to