From 71c5d175007fe0db3d0424a1a536858ccf3982d1 Mon Sep 17 00:00:00 2001 From: Khabib <136262760+Khabib73@users.noreply.github.com> Date: Wed, 29 Jul 2026 10:12:06 +0300 Subject: [PATCH] Add pre-commit --- .pre-commit-config.yaml | 22 ++++++++++++++++++++++ Cargo.lock | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..09704da --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + - id: check-merge-conflict + - id: debug-statements + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.16.0 + hooks: + - id: ruff + - id: ruff-format + + - repo: https://github.com/doublify/pre-commit-rust + rev: v1.0 + hooks: + - id: fmt + - id: clippy diff --git a/Cargo.lock b/Cargo.lock index 5bf1f98..aab0fe2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 4 [[package]] name = "fast-collections" -version = "0.0.0" +version = "0.0.1" dependencies = [ "pyo3", ]