-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.cfg
108 lines (104 loc) · 2.88 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[tool:pytest]
testpaths=tests
[flake8]
max-line-length=80
application-import-names=socketshark
exclude=build,dist,docs,venv,.tox,.eggs
max-complexity=10
select = C,D,E,F,FI,N,SIM,W,B,I25,UPS,SFS,B904
ignore=
# !!! make sure you have a comma at the end of each line EXCEPT the LAST one
# Indentation
E121,E122,E123,E124,E126,E127,E128,E131,
# Comments should start with '# '
E262,E265,E266,
# Module level import not at top of file
E402,
# Line too long
E501,
# Ambiguous variable name
E741,
# https://pypi.org/project/flake8-future-import/
FI1
SIM106,
SIM113,
SIM116,
SIM118,
SIM119,
# Fix these:
SIM102,
SIM109,
SIM110,
SIM111,
SIM117,
SIM201,
SIM203,
SIM300,
# Missing docstrings
D1,
# One-line docstring should fit on one line with quotes.
# We ignore this because it's OK to buy yourself a few extra characters
# for the summary line even if the summary line is *the only* line.
D200,
# 1 blank line required between summary line and description. We ignore
# this because we have quite a few docstrings where the summary is
# multi-line.
D205,
# Multi-line docstring summary should start at the first line.
# We ignore this because we agreed in #20553 that we we want to put the
# summary line below """ for multi-line docstrings.
D212,
# First line should end with a period. We ignore this because we have
# multi-line summaries.
D400,
# First line should be in imperative mood. We ignore this because we have
# callbacks which are better described with when they happen.
D401,
# First line should end with a period, question mark, or exclamation point.
# We ignore this because we have multi-line summaries.
D415,
# Variable in function should be lowercase - we use CONSTANT_LIKE stuff in
# functions.
N806,
# Exceptions named with Error
N818,
# This is not PEP8-compliant and conflicts with black.
W503,
W504,
# This is not PEP8-compliant and conflicts with black.
E203,
# Loop control variable 'x' not used within the loop body.
B007,
# Allow f-strings
SFS301,
# Allow .format
SFS201
per-file-ignores=
# Docstrings are not required on tests.
tests/*:D10,D20,D40
[isort]
skip=venv
known_first_party=socketshark
known_tests=tests
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,TESTS,LOCALFOLDER
default_section=THIRDPARTY
use_parentheses=true
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
combine_as_imports=True
line_length=79
float_to_top=True
[mypy]
python_version = 3.6
ignore_missing_imports = True
no_implicit_optional = True
strict_equality = True
follow_imports = skip
warn_unreachable = True
show_error_context = True
pretty = True
files = socketshark
mypy_path = $MYPY_CONFIG_FILE_DIR/stubs
namespace_packages = True
check_untyped_defs = True