-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpylintrc
56 lines (39 loc) · 1.5 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
[BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,e,_
# Private entries do not need documentation
# Yes, private entries must be marked with a single not a double underscore
no-docstring-rgx=_.*
[FORMAT]
# we follow a general practice
max-line-length=79
[MESSAGES CONTROL]
# I0011 - locally disabling ...
# If a pylint message is locally disabled - there is a reason for it. There is no need
# To show a warning
# C0203 - Metaclass method ... should have 'cls' as first argument
# pep8 says otherwise - lets stick with pep8 here
# R1705 - no-else-return] Unnecessary "else" after "return"
# Sometimes else at the end looks clearer, let's allow this.
disable=I0011, C0203, R1705, R0801, C0116, C0114, C0115
[REPORTS]
# set the output format. Available formats are text, parseable, colorized and html
output-format=text
# reasonable message template
msg-template=@{line}: [{msg_id} {symbol}] {msg}
[MASTER]
# given that numpy is a C extension it has to be white-listed
# same goes for MySQLdb exceptions
extension-pkg-whitelist=numpy,MySQLdb
ignore=middlewares.py
[TYPECHECK]
# numpy has a bunch of dynamically created fields invisible for pylint
# they need to be ignored
ignored-modules = numpy
ignored-classes = numpy
[SIMILARITIES]
# Ignore similar imports, see:
# https://stackoverflow.com/questions/29206482/pylint-duplicate-code-false-positive
# It is better to disable this on imports, than on the whole file because
# of required imports.
ignore-imports=yes