From 2a6806eb2c1811bb5e9f7aa112a80f4a8690cf59 Mon Sep 17 00:00:00 2001 From: Glatzel <893016099@qq.com.com> Date: Tue, 29 Oct 2024 09:42:18 +0800 Subject: [PATCH] ci: add pre-commit hook --- .pre-commit-config.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1613785..ed2f31b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,17 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks + - 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-toml -- repo: https://github.com/astral-sh/ruff-pre-commit - # Ruff version. - rev: v0.7.1 - hooks: - # Run the linter. - - id: ruff - # Run the formatter. - - id: ruff-format + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.7.1 + hooks: + # Run the linter. + - id: ruff + # Run the formatter. + - id: ruff-format