Skip to content

Commit cfd1f68

Browse files
committed
test: Add flagsmith-lint-tests pre-commit hook with example violation
1 parent 67fa5fd commit cfd1f68

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ repos:
4343
types: [python]
4444
stages: [pre-push]
4545

46+
- repo: https://github.com/Flagsmith/flagsmith-common
47+
rev: feat/lint-tests-ft-rules
48+
hooks:
49+
- id: flagsmith-lint-tests
50+
4651
- repo: https://github.com/python-poetry/poetry
4752
rev: 2.3.2
4853
hooks:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Example test that violates flagsmith-lint-tests rules."""
2+
3+
4+
def test_example_bad_naming() -> None:
5+
assert 1 + 1 == 2

0 commit comments

Comments
 (0)