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

piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a9f402ca chore(repo): add cargo-sort to pre-commit hooks (#2503)
5a9f402ca is described below

commit 5a9f402ca371a5b63084fce6839d3213fb84eaed
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Mon Dec 29 09:31:41 2025 +0100

    chore(repo): add cargo-sort to pre-commit hooks (#2503)
---
 .pre-commit-config.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0d195b4e7..6c7c99551 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -102,6 +102,13 @@ repos:
         types: [rust]
         pass_filenames: false
 
+      - id: cargo-sort
+        name: cargo sort
+        entry: cargo sort --workspace
+        language: system
+        files: (^|/)Cargo\.toml$
+        pass_filenames: false
+
       - id: cargo-clippy
         name: cargo clippy
         entry: cargo clippy

Reply via email to