Skip to content

Commit

Permalink
Add gitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Nov 2, 2023
1 parent a448607 commit 0b2745e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ jobs:
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}

- name: Run pre-commit
run: pre-commit run --all-files
run: |
pre-commit run --hook-stage manual gitlint-ci
pre-commit run --all-files
- name: Install Redis (macOS)
if: runner.os == 'macOS'
Expand Down
8 changes: 8 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[general]
ignore=body-is-missing,body-min-length

[title-max-length]
line-length=80

[title-min-length]
min-length=5
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ repos:
- id: check-xml
- id: check-yaml

- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
Expand Down

0 comments on commit 0b2745e

Please sign in to comment.