Skip to content

Commit

Permalink
test: add gitlint pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Jun 16, 2021
1 parent 804bd63 commit 792567f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- id: flake8
- repo: https://github.com/jorisroovers/gitlint
rev: v0.15.1
hooks:
- id: gitlint
args: [--contrib=contrib-title-conventional-commits, --ignore=body-is-missing, --msg-filename]
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.7
hooks:
Expand Down
75 changes: 74 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pytest-mock = "^3.6.0"
codecov = "^2.1.11"
pytest-cov = "^2.11.1"
toml-sort = "^0.19.0"
gitlint = "^0.15.1"

[tool.poetry.scripts]
bugmon = "bugmon.main:main"
Expand Down

0 comments on commit 792567f

Please sign in to comment.