Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(pre-commit): match path components, not substrings, in CSS hook vendor filter (#3705)

LearningCircuit844b82004583
diff --git a/.pre-commit-hooks/check-css-class-prefix.py b/.pre-commit-hooks/check-css-class-prefix.py
index 8e750ceebe..e943738d3f 100755
--- a/.pre-commit-hooks/check-css-class-prefix.py
+++ b/.pre-commit-hooks/check-css-class-prefix.py
@@ -462,14 +462,21 @@ def main():
for file_arg in sys.argv[1:]:
file_path = Path(file_arg)
- # Skip if file doesn't exist or is in node_modules
- if not file_path.exists() or "node_modules" in str(file_path):
+ if not file_path.exists():
continue
- # Skip vendor/third-party files
+ # Match path components, not substrings: "lib" must be an actual
+ # directory segment, not a fragment of "library.html" etc.
if any(
- vendor in str(file_path)
- for vendor in ["vendor", "dist", "build", "lib", "libs"]
+ vendor in file_path.parts
+ for vendor in [
+ "vendor",
+ "dist",
+ "build",
+ "lib",
+ "libs",
+ "node_modules",
+ ]
):
continue