Skip to content

Commit

Permalink
Use pre-commit to prevent adding .rej files and ongoing merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Sep 22, 2023
1 parent 3c3170b commit 102a201
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
repos:
- repo: local
hooks:
# Prevent committing .rej files
- id: forbidden-files
name: forbidden files
entry: found Copier update rejection files; review them and remove them
language: fail
files: "\\.rej$"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -15,8 +23,10 @@ repos:
- id: pretty-format-json
args: [--autofix, --indent=2]
- id: trailing-whitespace
- id: check-merge-conflict
args: [--assume-in-merge]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.36.0
rev: v0.37.0
hooks:
- id: markdownlint
- repo: https://github.com/citation-file-format/cffconvert
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning].

## [Unreleased]

### Added

- Use pre-commit to prevent adding .rej files and ongoing merge conflicts

## [0.1.5] - 2023-09-22

### Fixed
Expand Down

0 comments on commit 102a201

Please sign in to comment.