Skip to content

Commit c901650

Browse files
committed
chore(pre-commit): add conventional-pre-commit
1 parent a6e2ff4 commit c901650

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
15
repos:
26
- repo: https://github.com/pre-commit/pre-commit-hooks
37
rev: v5.0.0
@@ -14,3 +18,9 @@ repos:
1418
args: [ --fix ]
1519
# Run the formatter.
1620
- id: ruff-format
21+
- repo: https://github.com/compilerla/conventional-pre-commit
22+
rev: v4.0.0
23+
hooks:
24+
- id: conventional-pre-commit
25+
stages: [ commit-msg ]
26+
args: [ --verbose, --strict, fix, feat, test, docs, build, ci, chore, style, revert, refactor, perf, release ]

tests/test_providers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_singleton():
168168
dict_3 = provider()
169169

170170
assert dict_1 == {"a": 1, "b": 2}
171-
assert dict_1 != {"a": 1, "b": 2}
171+
assert dict_1 is not {"a": 1, "b": 2} # noqa: F632
172172
assert dict_2 is dict_1
173173
assert dict_3 is dict_1
174174

0 commit comments

Comments
 (0)