Skip to content

Commit

Permalink
Cleanup pre-release
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pgrange committed Feb 22, 2024
1 parent 5347d4e commit 3bda81e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.swp
token

# BSD sed generated files
*-e
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: [--branch, master]
- id: check-yaml
args: [--unsafe]
- id: check-json
- id: mixed-line-ending
- id: trailing-whitespace
exclude_types: [markdown]
- id: end-of-file-fixer
exclude: ^docs/man/.*$
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
Expand Down

0 comments on commit 3bda81e

Please sign in to comment.