From 76b27cf595e0e55b7ba64e4961de5ce3db34f155 Mon Sep 17 00:00:00 2001
From: Sebastien Ponce <sebastien.ponce@cern.ch>
Date: Wed, 6 Nov 2024 17:10:08 +0100
Subject: [PATCH] Added a check that inputs files don't use directly eos (they
 should use TestFileDB)

---
 .pre-commit-config.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8b603a7ce..02f5cd297 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -54,3 +54,10 @@ repos:
       name: disallow-checksums-update
       entry: bash -c 'if git diff --cached --name-only | grep -q "^checksums"; then echo "Changes to checksums file are not allowed!"; exit 1; fi'
       language: system
+    - id: test-inputs-use-testfiledb
+      name: test inputs use TestFileDB
+      description: make sure all inputs to test options files are going through FileTestDB
+      language: pygrep
+      types_or: [python, yaml]
+      exclude: ".pre-commit-config.yaml"
+      entry: 'eoslhcb.cern.ch//eos/lhcb/'
-- 
GitLab