Skip to content

Commit

Permalink
feat: use commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
goerlibe committed Sep 28, 2023
1 parent 7943eb0 commit d1224e0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ repos:
language: script
# exclude: we could exclude files here, but we do it in the script instead

- repo: local
#- repo: local
# hooks:
# - id: check-commit-msg
# name: Check commit message
# entry: python scripts/dev/check-commit-msg.py
# language: python
# stages: [commit-msg]

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.5.0
hooks:
- id: check-commit-msg
name: Check commit message
entry: python scripts/dev/check-commit-msg.py
language: python
- id: commitlint
name: Check commit message with commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
10 changes: 10 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* This file is part of the DiscoPoP software (http://www.discopop.tu-darmstadt.de)
*
* Copyright (c) 2020, Technische Universitaet Darmstadt, Germany
*
* This software may be modified and distributed under the terms of
* the 3-Clause BSD License. See the LICENSE file in the package base
* directory for details.
*/

module.exports = { extends: ['@commitlint/config-conventional'] };

0 comments on commit d1224e0

Please sign in to comment.