This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
mirrored from https://chromium.googlesource.com/catapult
-
Notifications
You must be signed in to change notification settings - Fork 564
/
pylintrc
85 lines (57 loc) · 2.35 KB
/
pylintrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[MASTER]
extension-pkg-whitelist=numpy
[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s).
# TODO: Shrink this list to as small as possible.
# TODO(https://crbug.com/1277796): These should be removed once we're Python 3-only:
# super-with-arguments
# useless-object-inheritance
disable=
design,
similarities,
fixme,
invalid-name,
locally-disabled,
locally-enabled,
missing-docstring,
not-an-iterable,
no-self-use,
protected-access,
star-args,
super-with-arguments,
useless-object-inheritance,
wrong-import-order,
wrong-import-position,
[REPORTS]
# Don't write out full reports, just messages.
reports=no
[BASIC]
# Regular expression which should only match correct function names.
function-rgx=^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*))$
# Regular expression which should only match correct method names.
method-rgx=^(?:(?P<exempt>_[a-z0-9_]+__|get|post|run|put|execute|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass)|(?P<camel_case>(_{0,2}|test|assert)[A-Z][a-zA-Z0-9_]*))$
# Regular expression which should only match correct instance attribute names
attr-rgx=^_{0,2}[a-z][a-z0-9_]*$
# Regular expression which should only match correct argument names.
argument-rgx=^[a-z][a-z0-9_]*$
# Regular expression which should only match correct variable names.
variable-rgx=^[a-z][a-z0-9_]*$
# Good variable names which should always be accepted, separated by a comma.
good-names=main,_
# List of builtins function names that should not be used, separated by a comma.
bad-functions=apply,input,reduce
[VARIABLES]
# Tells wether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching names used for dummy variables (i.e. not used).
dummy-variables-rgx=^\*{0,2}(_$|unused_)
[TYPECHECK]
# Tells wether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
ignored-classes=GenericSet,Histogram,HistogramSet,BinBoundaryDetailedSpec,UnitAndDirection,BinBoundaries,Bin,Diagnostic
[FORMAT]
# We use two spaces for indents, instead of the usual four spaces or tab.
indent-string=' '
# Make sure : in dicts and trailing commas are checked for whitespace.
no-space-check=