This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.cfg
74 lines (69 loc) · 3.05 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
63
64
65
66
67
68
69
70
71
72
73
74
[flake8]
# This section configures `flake8`, the python linting utility.
# See also https://flake8.pycqa.org/en/latest/user/configuration.html
ignore = D100,D101,D102,D103,D105,D200,D205,D210,D400,D401,D403,E127,E201,E202,E203,E221,E222,E231,E241,E265,E271,E272,E301,E501,N802,N803,N805,N806,W503
# D100 - Missing docstring in public module
# D101 - Missing docstring in public class
# D102 - Missing docstring in public method
# D103 - Missing docstring in public function
# D105 - Missing docstring in public package
# D200 - One-line docstring should fit on one line with quotes
# D205 - 1 blank line required between summary line and description
# D210 - No whitespaces allowed surrounding docstring text
# D400 - First line should end with a period
# D401 - First line should be in imperative mood
# D403 - First word of the first line should be properly capitalized
# D* codes come from pydocstyle which is integrated into flake8 via flake8-docstring.
# See also http://www.pydocstyle.org/en/5.0.1/error_codes.html
# E127 - continuation line over-indented for visual indent
# E201 - whitespace after ‘(‘
# E202 - whitespace before ‘)’
# E203 - whitespace before ‘:’
# E221 - multiple spaces before operator
# E222 - multiple spaces after operator
# E231 - missing whitespace after ','
# E241 - multiple spaces after ‘,’
# E265 - block comment should start with ‘# ‘
# E271 - multiple spaces after keyword
# E272 - multiple spaces before keyword
# E301 - expected 1 blank line, found 0
# E501 - line too long (82 > 79 characters)
# E* codes come from pycodestyle which is integrated with flake8
# See also https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
# N802 - function name should be lowercase
# N803 - argument name should be lowercase
# N805 - first argument of a method should be named 'self'
# N806 - variable in function should be lowercase
# N* codes come from pep8-naming, which integrates with flake8
# See also https://github.com/PyCQA/pep8-naming#error-codes
# W503 - line break before binary operator
#
# The reason for adding W503 to the ignored list is because W503 (Line break
# occurred before a binary operator) and W504 (Line break occurred after a binary
# operator) are both enabled in flake8 by default for some reason. But they are
# mutually exclusive so one has to be disabled / ignored.
#
# According to pep8 at the time of the commit
# https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
#
# ```
# income = (gross_wages +
# taxable_interest +
# (dividends - qualified_dividends) -
# ira_deduction -
# student_loan_interest)
# income = (gross_wages
# + taxable_interest
# + (dividends - qualified_dividends)
# - ira_deduction
# - student_loan_interest)
# ```
#
# W504 (Line break occurred after a binary operator) is the correct behavior.
# Exclude the git directory and virtualenv directory (as `.env`)
exclude = .git,.env
[tool:brunette]
line-length = 90
verbose = false
# skip-string-normalization = true
single-quotes = true