blob: 892d34081490d2a3e776bb7be430db87271a712c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# pylint: disable=missing-docstring,too-few-public-methods
from enum import Enum
__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
class FooEnum(Enum): # [invalid-name]
const_with_snake_case = 42
another_const = 43
|