From c77478e8e9d1c498f482dbe59817c9195a922069 Mon Sep 17 00:00:00 2001 From: KevinNitroG Date: Fri, 27 Dec 2024 12:22:47 +0700 Subject: [PATCH] chore(dev/precommit): add uv lock file, export requirements hook --- .pre-commit-config.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ad83810..661b146 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,9 @@ -# See https://pre-commit.com for more information -# See https://pre-commit.com/hooks.html for more hooks default_install_hook_types: - pre-commit - commit-msg + - post-checkout + - post-merge + - post-rewrite ci: skip: @@ -35,6 +36,13 @@ repos: - id: check-metaschema files: config.sample.json + - repo: https://github.com/astral-sh/uv-pre-commit + rev: 0.5.12 + hooks: + - id: uv-sync + - id: uv-lock # update lock file + - id: uv-export # export lock file to requirements.txt + - repo: local hooks: - id: generate-config-schemas