Skip to content

Commit

Permalink
ci: Add typos and minor enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Jun 24, 2023
1 parent 65c7cc4 commit 9d97dd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "docs/assets/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude_types:
- svg
- id: check-yaml
args:
- "--unsafe" # Allow tags
- id: check-added-large-files
- repo: https://github.com/crate-ci/typos
rev: v1.15.5
hooks:
- id: typos
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
各种课程的总结、随记等。

[![ci](https://github.com/YDX-2147483647/summaries/actions/workflows/ci.yml/badge.svg)](https://github.com/YDX-2147483647/summaries/actions/workflows/ci.yml)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![RSS](https://img.shields.io/badge/RSS-valid-orange?logo=rss)](http://validator.w3.org/feed/check.cgi?url=https%3A//ydx-2147483647.github.io/summaries/feed_rss_updated.xml)

## 🤝改进此项目
Expand Down
3 changes: 3 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[type.md]
# 不支持中文,故只检查文件名,不检查内容
check-file = false

0 comments on commit 9d97dd6

Please sign in to comment.