summaryrefslogtreecommitdiffstats
path: root/gitlint-core/gitlint/tests/samples/user_rules/parent_package/__init__.py
blob: 22c3f652badede2a4f780ccc562fd96f2cbd697b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# This file is meant to test that we can also load rules from __init__.py files, this was an issue with pypy before.

from gitlint.rules import CommitRule


class InitFileRule(CommitRule):
    name = "my-init-cömmit-rule"
    id = "UC1"
    options_spec = []

    def validate(self, _commit):
        return []