forked from rlworkgroup/garage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
36 lines (32 loc) · 1.26 KB
/
setup.cfg
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
[flake8]
# W503 enforces the break after the operator, which is acceptable, but it's
# preferred to do it before the operator. Since YAPF enforces the preferred
# style, this rule is ignored.
# D107 enforces writing docstrings for `__init__`, but this is usually duplicative of the class docstring.
# Sphinx supports interpreting the arguments from the class docstring as the arguments for `__init__`.
# We choose that as our convention and disable this rule.
ignore = W503, D107
import-order-style = google
application-import-names = tests,sandbox,garage,examples
[pylint]
#[MESSAGES CONTROL]
msg-template = {path}:{msg_id}:{line:3d},{column}: {msg}
disable = all
# C0326 Exactly one space required around keyword argument assignment
# C1801 Do not use `len(SEQUENCE)` to determine if a sequence is empty
# F0401 Unable to import %s
# E0602 Undefined-variable
# E0603 Undefined-all-variable
# W0601 Global-variable-undefined
# W0611 Unused import %s
# R1710 Either all return statements in a function should return an expression,
# or none of them should.
enable = C0326,C1801,F0401,E0602,E0603,W0601,W0611,R1710
[unittest]
plugins = nose2.plugins.attrib
nose2.plugins.layers
[yapf]
based_on_style = pep8
allow_multiline_lambdas = true
[coverage:run]
source = garage