summaryrefslogtreecommitdiff
path: root/tests/functional/n/name_preset_snake_case.py
blob: 5498887153097b8304cfa4b0c3a9545602792e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# pylint: disable=missing-docstring,too-few-public-methods
__version__ = "1.0"
SOME_CONSTANT = 42  # [invalid-name]


def say_hello(some_argument):
    return [some_argument * some_value for some_value in range(10)]


class MyClass:  # [invalid-name]
    def __init__(self, arg_x):
        self._my_secret_x = arg_x

    @property
    def my_public_x(self):
        return self._my_secret_x * 2

    def __eq__(self, other):
        return isinstance(other, MyClass) and self.my_public_x == other.my_public_x


def sayHello():  # [invalid-name]
    pass