-
Notifications
You must be signed in to change notification settings - Fork 39
/
setup.cfg
78 lines (58 loc) · 1.63 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
75
76
77
78
[pylint]
[pylint.messages_control]
disable=
no-else-return,
# Fix later
keyword-arg-before-vararg,
too-few-public-methods,
subprocess-run-check,
missing-docstring,
line-too-long,
too-many-lines,
[pylint.basic]
good-names-rgxs=
[f-o],
w,
[pylint.string]
#check-quote-consistency=yes
# Would be nice to have consistent quote style, but don't enforce it yet.
[pylint.format]
# Regexp for a line that is allowed to be longer than the limit.
# # TODO: ? add `# pylint: ...`
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Maximum number of characters on a single line.
#max-line-length=100
# Maximum number of lines in a module.
#max-module-lines=1000
[pylint.design]
# Minimum number of public methods for a class (see R0903).
#min-public-methods=2
# [pylint] END #
[flake8]
#[pycodestyle]
# flake8 uses pycodestyle as a plugin, so they share (most of) the error codes
# Uncomemnt whichever one we're currently using.
ignore =
E121,E123,E126,E226,E24,E704,W503,W504,
# pycodestyle's default ignores
E265,
# Allow for `#` w/o space afterwards.
# Used for commenting-out a line of code, like `#print(..)`
E116,
E117,
# Allow commenting on the next line, indented:
# ```
# print(...)
# # This prints "...", comes really handy.
# ```
E306,
# `def` inside a `def` does not have to be preceded by an empty line
E203,
# Allow spaces before `:` in slices with complex expressions:
# alist[lower : upper + 1]
# E203 is not actually PEP8 compliant.
# Fix later
E126, E127, E128, E124,
# Has some disagreements with vim's automatic indentation for python
E501
# line too long