-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpylintrc
64 lines (54 loc) · 1.93 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
# Custom pylintrc file
# Based off defaults from: pylint --generate-rcfile
[MASTER]
persistent=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=
# NOTE:
# Eventually we may want to blacklist, but it's a *lot* of work, and our
# codebase is in a state of flux. Instead, I'm whitelisting important ones
# and gradually introducing new ones as necessary.
disable=all
# Full list at https://pylint.readthedocs.io/en/latest/features.html
enable=
# 2 spaces is the correct number of spaces. I don't care what PEP8 says.
bad-indentation, mixed-indentation,
# Keep things clean and avoid accidental dependencies and name collisions
unused-import, unused-variable,
# I'm needlessly inconsistent about this.
wrong-import-order,
# There's zero reason for old-style classes these days, and I sometimes rely on new-style ones. So make everything new.
old-style-class,
# Prevents things like func(arg=[]). There's almost always a safer way.
dangerous-default-value,
# This could probably just be fixed automatically...
trailing-whitespace,
# Avoid confusion, typos, and lingering inconsistencies.
arguments-differ,
[BASIC]
# List of builtins function names that should not be used
bad-functions=input
# Good/bad variable names which should always/never be accepted
good-names=i,j,k,ex,Run,_
bad-names=
[FORMAT]
# I'm old-school. 80 or bust.
max-line-length=80
# PEP-8 says 4; it's wrong.
indent-string=' '
indent-after-paren=2
[VARIABLES]
# For temporary variables, allow only "_"
# Being strict means it's easier to catch unused variables.
dummy-variables-rgx=_
# Callbacks can be named anything.
callbacks=
[CLASSES]
# Isolated the API. No exceptions.
exclude-protected=
[DESIGN]
# Don't set a limit on number of arguments.
# Simple is better, but complex does happen. Don't enforce an arbitrary number.
max-args=1000