Skip to content

Commit

Permalink
Update pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
boidolr committed Feb 2, 2022
1 parent 663e7c8 commit 2185aef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
28 changes: 11 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,18 @@
# Update repos:
# pre-commit autoupdate
---
minimum_pre_commit_version: 2.4.0
default_language_version:
python: python3
default_stages: [commit]
fail_fast: false
exclude: ^$
repos:
# - repo: https://github.com/boidolr/pre-commit-msg
# rev: v1.0.0
# hooks:
# - id: prepare-message
# args: [--ignore-branch=master]
# - id: format-message
# - repo: https://github.com/boidolr/pre-commit-text
# rev: v1.0.0
# hooks:
# - id: pretty-format-yaml
# args: [--preserve-quotes]
- repo: https://github.com/boidolr/pre-commit-msg
rev: v1.0.0
hooks:
- id: prepare-message
args: [--ignore-branch=main]
- id: format-message
- repo: https://github.com/boidolr/pre-commit-text
rev: v1.0.0
hooks:
- id: pretty-format-yaml
args: [--preserve-quotes]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
Expand Down
24 changes: 12 additions & 12 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
- id: prepare-message
name: prepare commit message
description: Add prefix from feature branch to commit message.
language: python
entry: prepare-message
stages: [prepare-commit-msg]
- id: prepare-message
name: prepare commit message
description: Add prefix from feature branch to commit message.
language: python
entry: prepare-message
stages: [prepare-commit-msg]

- id: format-message
name: check message formatting
description: Ensure commit message has correct formatting between header and description.
language: python
entry: format-message
stages: [commit-msg]
- id: format-message
name: check message formatting
description: Ensure commit message has correct formatting between header and description.
language: python
entry: format-message
stages: [commit-msg]

0 comments on commit 2185aef

Please sign in to comment.