-
Notifications
You must be signed in to change notification settings - Fork 20
/
.pylintrc
65 lines (62 loc) · 2.41 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
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=pydantic.fields
[MESSAGES CONTROL]
# Should be able to have unused args and kwargs
ignored-argument-names=args|kwargs
disable =
# in python 3.8 of expected a valid pylint message and got 'too-many-positional-arguments'
unknown-option-value,
# often useful to be explicit on which returns should return None
useless-return,
# gets angry when you declare a module-level logger
invalid-name,
# missing-*-docstring: we have no intention to require docstrings on everything
C0111,
# wrong-import-order classifies relative imports differently from the
# reorder_python_imports git hook. We'll defer to the git hook.
wrong-import-order,
# Covered by flake8 E402
wrong-import-position,
# duplicate-code triggers on duplicated imports in different files!?
duplicate-code,
# gets angry when you declare a BaseModel or a Dataclass!?
too-few-public-methods,
# pylint apparently can't understand that pydantic.BaseModel exists?
no-name-in-module,
# same as above
no-member,
# we'd prefer to see TODOs and FIXMEs, rather than discouraging people from adding
# them
fixme,
# can't distinguish pytest fixtures from real issues
redefined-outer-name,
# Don't tell me what to do
no-else-return,
# We'll use flake8 to detect too-long lines.
line-too-long,
# Prevents use of 'foo', 'bar', and 'baz', especially in tests
blacklisted-name,
# Throws up false positives https://github.com/PyCQA/pylint/issues/1498
unsubscriptable-object,
# This is not actually a bad pattern in Python, where you can name every argument.
# There is a separate message 'too-many-function-args' which catches the pattern
# which is actually bad.
too-many-arguments,
# the flake8 F401 check catches this
unused-import,
# The docs say this catches when you assign to a None object, but it also appears
# to flag situations where pylint incorrectly assumes that a value is None, but
# it actually is the return value of a decorator-wrapped function
unsupported-assignment-operation,
# Covered by flake8 E722
bare-except,
# Not always accurate
using-constant-test,
# Hidden imports are often useful for avoiding optional dep imports
import-outside-toplevel
[DESIGN]
max-attributes=12
max-locals=25