-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
54 lines (51 loc) · 1.11 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
[coverage:run]
branch = True
omit =
*/__init__.py
gendiff/scripts/*
[flake8]
accept-encodings = utf-8
max-complexity = 6
statistics = False
max-line-length = 80
doctests = True
enable-extensions = G
isort-show-traceback = True
# clean
ignore =
# It is possibble to have prints.
WPS421
# Variable `value`
WPS110
# String concatenation
WPS336
# It is possibble to have asserts.
S101
per-file-ignores =
# Complexity, overlaps
diff_maker.py:
C901, WPS231,
WPS440, WPS221,
WPS210, WPS426,
WPS202, WPS226,
WPS220
# Module members
test_gendiff.py: WPS202
# Complexity, return statements
stylish.py: C901, WPS212, WPS232
# Complexity, return statements
plain.py: WPS210, WPS231, WPS221, WPS226, WPS232
# Complexity.
json.py: WPS232
# Init logic.
__init__.py: WPS412, RST902
[tool:pytest]
norecursedirs = __pycache__
addopts = --strict-markers
[isort]
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
include_trailing_comma = true
default_section = FIRSTPARTY
# Should be: 80 - 1
line_length = 79