From 523ec240a75c48355fa3489fa17837b46a182698 Mon Sep 17 00:00:00 2001 From: zhugelianglongming Date: Wed, 7 Dec 2022 20:53:25 +0800 Subject: [PATCH] Enable pre-commit --- .pre-commit-config.yaml | 7 +++++++ README.md | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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..22e6b96 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace diff --git a/README.md b/README.md index 43c05d2..f55baf0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Puzzle +[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) + + 收录谜题资源 ![](images/智力谜题.svg) @@ -11,7 +14,7 @@ ### gitbook -访问: +访问: - [puzzle](https://zhugelianglongming.github.io/puzzle/) - [智力游戏](https://zhugelianglongming.gitbook.io/zhi-li-you-xi/) @@ -63,4 +66,4 @@ - [Logic Masters Deutschland e.V.](https://logic-masters.de/) - [LITS](https://cn.puzzle-lits.com/) - [Grandmaster Puzzles](https://www.gmpuzzles.com/blog/) -- [Simon Tatham's Portable Puzzle Collection](https://www.chiark.greenend.org.uk/~sgtatham/puzzles/) \ No newline at end of file +- [Simon Tatham's Portable Puzzle Collection](https://www.chiark.greenend.org.uk/~sgtatham/puzzles/)