-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.cfg
82 lines (68 loc) · 1.85 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
[pycodestyle]
# Read by pylint as well
max-line-length = 120
# Flake8 runs PyFlakes and PEP8 (pycodestyle) automatically. No need to run both
[flake8]
max-line-length = 120
max-complexity = 12
jobs = 1
exclude = build,dis,docs//conf.py/sompackage/migrations,*.eff-info,venv*,jupyter,*pycache*,.*,data,docs,docsrc
[isort]
extend_skip_glob=venv*,jupyter*,*pycache*,.*,data,docs,docsrc
profile=black
[pylint]
# Use the same ignore list that Git does
skip_gitignore = True
lin_length = 119
known-third-party=lumibot
[tool:pytest]
# Exclude the warnings issued by underlying library that we can't fix
filterwarnings =
ignore::DeprecationWarning:aiohttp.*
ignore::DeprecationWarning:quantstats.*
ignore::DeprecationWarning:pandas.*
ignore::DeprecationWarning:pkg_resources.*
# Ignore the warnings from Lumibot itself that will be removed in the future
ignore:backtest:DeprecationWarning:tests.*
testpaths = tests
norecursedirs = docs .* *.egg* appdir jupyter *pycache* venv* .cache* .coverage* .git data docs docsrc
# .coveragerc to control coverag.py
[coverage:run]
command_line = -m pytest -vv
branch = True
omit =
# * so you can get all dirs
*__init__.py
# Dirs to ignore
tests/*
venv*
.cache/
.git/
.cache-directory
.pytest*
docs/
data/
docsrc/
example*
cache*
[coverage:report]
# Regexs for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no coverag
# Don't complain about missing debug-only code
def __repr__
if self\.debug-only
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runable code isn't run
if 0:
if __name__ == __main__:
precision = 2
ignore_errors = True
show_missing = True
# Add this back in when coverage is at an acceptable level
fail_under = 40
[coverage:html]
directory = .coverage.html_report