-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pylintrc
67 lines (61 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
# Pylint config examples:
#
# https://github.com/kubeflow/examples/blob/93ba9c52c696023b7f7cedcc923998c5a031e231/.pylintrc
#
# Mostly, the ignores below are to help refactoring. Some issues are so
# numerous as to be too noisy, potentially missing more important
# output that pylint can provide.
[MAIN]
ignore=
LICENSE,
.pylintrc,
Makefile,
ignore-patterns=
^(.+).ini$,
^(.+).md$,
^(.+).sh$,
^(.+).service$,
^(.+).json,
^(.+).yml,
^(.+).yaml,
^(.+).toml,
^(.+).env,
^(.+).cfg,
^(.+).gif,
^(.+).png,
^(.+).htm,
^(.+).txt,
^(.+).csv,
^(.+).sf,
^(.+).droid,
^(.+).db,
^(.+)Makefile,
^\.,
ignore-paths=
requirements/.,
tests/fixtures/vcrpy/.,
Makefile,
[MESSAGES CONTROL]
disable=
C0301, # line-length too long, covered by Black/Flake.
R0801, # similar code in two files - output code should be independent of each other.
R0903, # too few public methods - this feels somewhat arbitrary, though I suspect points to potentially better object design.
R0902, # too many instance variables - as above, could maybe be better if we have a different approach/model.
C0302, # too many lines in module - the code could be more fragmented, but it isn't.
C0103, # tmp: variable naming.
W0201, # tmp: class vars defined out of init.
C0116, # tmp: doc-string missing, will fix slowly over time...
C0114, # tmp: missing module doc-string, will fix slowly over time...
R0205, # tmp: inherits from object, remove with Python 3 only code...
R0914, # tmp: too many local variables, slowly refactor.
R0915, # tmp: too many statements, find better builder pattern for string output.
R0912, # tmp: too many branches, we can be more EAFP (easier to ask forgiveness).
R0916, # tmp: too many boolean expressions in an if. Can possibly be clearer, e.g. namespace handling.
R0913, # tmp: too many arguments.
W0621, # tmp: redefining name from outer scope.
W0511, # tmp: inline TODO.
R1710, # tmp: all statements need to return or none.
W0603, # tmp: using global.
C0209, # tmp: formatting a regular string which could be f-string.
C0201, # tmp: consider iterating dictionary.
C1803, # tmp: list comparison can be simplified.