@@ -66,114 +66,37 @@ repos:
6666 - prometheus-client
6767 - urllib3
6868
69- # Rust formatting and linting
69+ # Rust formatting, linting, and tests (workspace-level)
7070 - repo : local
7171 hooks :
7272 - id : cargo-fmt
7373 name : cargo fmt
74- description : Format Rust files with rustfmt.
75- entry : bash -c 'cargo fmt --manifest-path asap-query-engine/Cargo.toml -- --check'
74+ description : Format all Rust workspace crates with rustfmt.
75+ entry : bash -c 'cargo fmt --all -- --check'
7676 language : system
77- files : ^asap-query-engine/.* \.rs$
77+ files : \.rs$
7878 pass_filenames : false
7979
8080 - id : cargo-check
8181 name : cargo check
82- description : Check the package for errors.
83- entry : bash -c 'cargo check --manifest-path asap-query-engine/Cargo.toml --all '
82+ description : Check the workspace for errors.
83+ entry : bash -c 'cargo check --workspace '
8484 language : system
85- files : ^asap-query-engine/.* \.rs$
85+ files : \.rs$
8686 pass_filenames : false
8787
8888 - id : cargo-clippy
8989 name : cargo clippy
90- description : Lint Rust sources
91- entry : bash -c 'cargo clippy --manifest-path asap-query-engine/Cargo.toml --all-targets --all-features -- -D warnings'
90+ description : Lint all Rust workspace crates.
91+ entry : bash -c 'cargo clippy --workspace --all-targets --all-features -- -D warnings'
9292 language : system
93- files : ^asap-query-engine/.* \.rs$
93+ files : \.rs$
9494 pass_filenames : false
9595
96- - id : cargo-fmt-datafusion-summary-library
97- name : cargo fmt (datafusion_summary_library)
98- description : Format datafusion_summary_libraryRust files with rustfmt .
99- entry : bash -c 'cargo fmt --manifest-path asap-common/dependencies/rs/datafusion_summary_library/Cargo.toml -- --check '
96+ - id : cargo-test
97+ name : cargo test
98+ description : Run all Rust workspace tests .
99+ entry : bash -c 'cargo test --workspace '
100100 language : system
101- files : ^asap-common/dependencies/rs/datafusion_summary_library/.*\.rs$
102- pass_filenames : false
103-
104- - id : cargo-test-datafusion-summary-library
105- name : cargo test (datafusion_summary_library)
106- description : Run datafusion_summary_library tests.
107- entry : bash -c 'cargo test --manifest-path asap-common/dependencies/rs/datafusion_summary_library/Cargo.toml'
108- language : system
109- files : ^asap-common/dependencies/rs/datafusion_summary_library/.*\.rs$
110- pass_filenames : false
111-
112- - id : cargo-fmt-sql-utilities
113- name : cargo fmt (sql_utilities)
114- description : Format sql_utilities Rust files with rustfmt.
115- entry : bash -c 'cargo fmt --manifest-path asap-common/dependencies/rs/sql_utilities/Cargo.toml -- --check'
116- language : system
117- files : ^asap-common/dependencies/rs/sql_utilities/.*\.rs$
118- pass_filenames : false
119-
120- - id : cargo-test-sql-utilities
121- name : cargo test (sql_utilities)
122- description : Run sql_utilities tests.
123- entry : bash -c 'cargo test --manifest-path asap-common/dependencies/rs/sql_utilities/Cargo.toml'
124- language : system
125- files : ^asap-common/dependencies/rs/sql_utilities/.*\.rs$
126- pass_filenames : false
127-
128- - id : cargo-fmt-promql-utilities
129- name : cargo fmt (promql_utilities)
130- description : Format promql_utilities Rust files with rustfmt.
131- entry : bash -c 'cargo fmt --manifest-path asap-common/dependencies/rs/promql_utilities/Cargo.toml -- --check'
132- language : system
133- files : ^asap-common/dependencies/rs/promql_utilities/.*\.rs$
134- pass_filenames : false
135-
136- - id : cargo-test-promql-utilities
137- name : cargo test (promql_utilities)
138- description : Run promql_utilities tests.
139- entry : bash -c 'cargo test --manifest-path asap-common/dependencies/rs/promql_utilities/Cargo.toml'
140- language : system
141- files : ^asap-common/dependencies/rs/promql_utilities/.*\.rs$
142- pass_filenames : false
143- - id : cargo-fmt-sketch-core
144- name : cargo fmt (sketch-core)
145- description : Format sketch-core Rust files with rustfmt.
146- entry : bash -c 'cargo fmt --manifest-path asap-common/sketch-core/Cargo.toml -- --check'
147- language : system
148- files : ^asap-common/sketch-core/.*\.rs$
149- pass_filenames : false
150-
151- - id : cargo-clippy-sketch-core
152- name : cargo clippy (sketch-core)
153- description : Lint sketch-core Rust sources.
154- entry : bash -c 'cargo clippy --manifest-path asap-common/sketch-core/Cargo.toml --all-targets --all-features -- -D warnings'
155- language : system
156- files : ^asap-common/sketch-core/.*\.rs$
157- pass_filenames : false
158-
159- - id : cargo-test-sketch-core
160- name : cargo test (sketch-core)
161- description : Run sketch-core tests.
162- entry : bash -c 'cargo test --manifest-path asap-common/sketch-core/Cargo.toml'
163- language : system
164- files : ^asap-common/sketch-core/.*\.rs$
165- - id : cargo-fmt-sketch-db-common
166- name : cargo fmt (sketch_db_common)
167- description : Format sketch_db_common Rust files with rustfmt.
168- entry : bash -c 'cargo fmt --manifest-path asap-common/dependencies/rs/sketch_db_common/Cargo.toml -- --check'
169- language : system
170- files : ^asap-common/dependencies/rs/sketch_db_common/.*\.rs$
171- pass_filenames : false
172-
173- - id : cargo-test-sketch-db-common
174- name : cargo test (sketch_db_common)
175- description : Run sketch_db_common tests.
176- entry : bash -c 'cargo test --manifest-path asap-common/dependencies/rs/sketch_db_common/Cargo.toml'
177- language : system
178- files : ^asap-common/dependencies/rs/sketch_db_common/.*\.rs$
101+ files : \.rs$
179102 pass_filenames : false
0 commit comments