Skip to content

Commit 9d70d8b

Browse files
committed
style(pre-commit): add tests file under commands into pre-commit end-of-line fixer exclude
1 parent 0d269f2 commit 9d70d8b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ body:
5353
- commitizen version: `cz version`
5454
- python version: `python --version`
5555
- operating system: `python3 -c "import platform; print(platform.system())"`
56-
56+
5757
```bash
5858
cz version --report
5959
```

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
default_stages: [push]
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v3.1.0
4+
rev: v4.1.0
55
hooks:
66
- id: check-vcs-permalinks
77
- id: end-of-file-fixer
8-
exclude: "tests/[test_*|data]/*"
8+
exclude: "tests/[test_*|data|commands/tests_*]/*"
99
- id: trailing-whitespace
1010
args: [--markdown-linebreak-ext=md]
1111
- id: debug-statements

docs/auto_check.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Automatically check message before commit
22

33
## About
4-
To automatically check a commit message prior to committing, you can use a [git hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
4+
To automatically check a commit message prior to committing, you can use a [git hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
55

66
## How to
77
There are two common methods for installing the hook:
@@ -62,4 +62,3 @@ Each time you create a commit, automatically, this hook will analyze it.
6262
If the commit message is invalid, it'll be rejected.
6363

6464
The commit should follow the given committing rules; otherwise, it won't be accepted.
65-

0 commit comments

Comments
 (0)