-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.cfg
81 lines (72 loc) · 1.9 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
[flake8]
exclude = .git,__pycache__,notes,.vscode,.pytest_cache,.idea,.github,.coverage,typings
# To be compliant with black
max-line-length = 120
#To be compliant with black
extend-ignore = E203
# Enable flake8-logging-format:
enable-extensions = G
ignore =
G004,
# logger does not optimizes f strings but __str__ calls are ok for us.
E117,
# over-indented (set when using tabs)
E127,
# continuation line over-indented for visual indent
E128,
# continuation line under-indented for visual indent
E201,
# whitespace after '('
E202,
# whitespace before ')'
E265,
# block comment should start with '# '
E231,
# missing whitespace after ','
E226,
# missing whitespace around arithmetic operator
E261,
# at least two spaces before inline comment
E302,
# expected 2 blank lines, found 1
E305,
# expected 2 blank lines after class or function definition, found 1
E501,
# line too long
E701,
# multiple statements on one line (colon)
W503,
# Line break occurred before a binary operator
ET128,
# (flake8-tabs) unexpected number of tabs and spaces at start of XXX
[tool:pytest]
addopts = --strict-markers --durations=10 -s
testpaths = tests
xfail_strict = False
log_cli = True
[coverage:run]
source = ./
omit =
tests/*
notes/*
docs/*
run_ingest.py
flows/version.py
concurrency = multiprocessing
[coverage:report]
precision = 2
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
# Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod
# Show missing lines in the report:
show_missing = True