-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
62 lines (62 loc) · 2.69 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
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
[flake8]
max-line-length: 100
# Whether to display the pep8 instructions on failure (can be quite verbose)
show-pep8: False
# Whether to show source code for each failure
show-source: True
# Maximum cyclomatic complexity allowed
max-complexity: 14
format: pylint
exclude: girder/external/*
# Ignore certain errors.
#
# If an ignore line is not specified, the pep8 module defaults to
# E123,E133,E226,E241,E242.
# We didn't have any E133 or E242 errors, so don't ignore those.
#
# The errors we suppress are:
# Whitespace errors
# ~~~~~~~~~~~~~~~~~
# E123 - closing bracket does not match indentation of opening bracket's
# line
# E226 - missing whitespace around arithmetic operator
# E241 - multiple spaces after ","
#
# Docstring errors
# ~~~~~~~~~~~~~~~~
# By including the flake8-docstrings module, we also will fail on PEP257
# errors (D...). For the moment, suppress all of the D... errors that would
# cause us to fail. We may want to revisit this to make our code more PEP257
# conformant.
# D100 - Public module (100) docstring missing.
# D101 - Public class (101) docstring missing.
# D102 - Public method (102) docstring missing.
# D103 - Public function (103) docstring missing.
# D104 - Missing docstring in public package.
# D105 - Missing docstring in magic method.
# D107 - Missing docstring in __init__
# D200 - One-line docstrings should fit on one line with quotes.
# D201 - No blank lines allowed before (201) docstring.
# D202 - No blank lines allowed after (202) docstring.
# D203 - 1 blank required before (203) class docstring.
# D204 - 1 blank required after (204) class docstring.
# D205 - Blank line required between one-line summary and description.
# D400 - First line should end with a period.
# D401 - First line should be in imperative mood.
# D402 - First line should not be the function's "signature".
#
# Identifier errors
# ~~~~~~~~~~~~~~~~~
# TODO(opadron) we should have an explanation of why we break away from normal
# Python naming conventions. Is this a case of the prevailing style argument
# made in pep8? If so, exactly who's style is prevailing?
# N802 - Function name should be lowercase.
# N803 - Argument name should be lowercase.
# N806 - Variable in function should be lowercase.
# N812 - Lowercase imported as non lowercase.
# W606 - 'async' and 'await' are reserved keywords starting with Python 3.7
#
# Added because of laziness
# ~~~~~~~~~~~~~~~~~~~~~~~~~
# B902 - blind except Exception: statement
ignore: D100,D101,D102,D103,D104,D105,D107,D200,D201,D202,D203,D204,D205,D400,D401,D402,E123,E226,E241,N802,N803,N806,N812,W606,B902