Skip to content

Commit 3bda81e

Browse files
committed
Cleanup pre-release
I want to commit on master sometimes. Also, troff files (man pages) can end without new line so excluding the docs/man directory from end-of-file pre-commit. BSD sed generated `-e` files that I want git to ignore.
1 parent 5347d4e commit 3bda81e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
*.swp
22
token
3+
4+
# BSD sed generated files
5+
*-e

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
44
rev: v4.5.0
55
hooks:
6-
- id: no-commit-to-branch
7-
args: [--branch, master]
86
- id: check-yaml
97
args: [--unsafe]
108
- id: check-json
119
- id: mixed-line-ending
1210
- id: trailing-whitespace
1311
exclude_types: [markdown]
1412
- id: end-of-file-fixer
13+
exclude: ^docs/man/.*$
1514
- id: check-merge-conflict
1615
- id: check-executables-have-shebangs
1716
- id: check-shebang-scripts-are-executable

0 commit comments

Comments
 (0)