From 16d2fccd5cd357932a987ae1e2dbffdcf4ffd1dc Mon Sep 17 00:00:00 2001 From: Joan Antoni RE Date: Tue, 2 Jan 2024 11:40:54 +0100 Subject: [PATCH] Add nucliadb_relations folders to pre-commit config (#1692) * Add nucliadb_relations folders to pre-commit config * Modify regex to get all folder versions --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c19f36889..fcd7c0b5ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: name: fmt entry: cargo +nightly fmt --check language: system - files: (^nucliadb_vectors/)|(^nucliadb_node/)|(^nucliadb_paragraphs/)|(^nucliadb_texts/) + files: (^nucliadb_vectors*/)|(^nucliadb_node*/)|(^nucliadb_paragraphs*/)|(^nucliadb_texts*/)|(^nucliadb_relations*/) types: ["rust"] pass_filenames: false @@ -34,6 +34,6 @@ repos: name: clippy entry: cargo clippy --all-features -- -D warnings language: system - files: (^nucliadb_vectors/)|(^nucliadb_node/)|(^nucliadb_paragraphs/)|(^nucliadb_texts/) + files: (^nucliadb_vectors*/)|(^nucliadb_node*/)|(^nucliadb_paragraphs*/)|(^nucliadb_texts*/)|(^nucliadb_relations*/) types: ["rust"] pass_filenames: false