forked from robinhood-unofficial/pyrh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
58 lines (50 loc) · 1.4 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
[metadata]
description-file = README.md
[coverage:run]
branch = true
source = pyrh
omit =
tests/*
docs/*
[coverage:report]
exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
@overload
[mypy]
strict = True
disallow_untyped_decorators = False
# TODO: Remove ignored typing errors
[mypy-*.robinhood]
ignore_errors = True
[mypy-*.endpoints]
ignore_errors = True
[mypy-tests.*]
ignore_errors = True
# flake8
[flake8]
# temporarily exclude tests folder
max-line-length = 88
exclude = .git,__pycache__,docs/*,build,dist,.tox,tests/*
ignore =
W503 # Line break occurred after a binary operator (opposite of W504)
D107 # Missing docstring in __init__
D301 # Use r""" if any backslashes in a docstring
D106 # Nested class docs (marshmallow)
max-complexity = 12
# TODO: remove docstring exemptions after refactor
per-file-ignores =
pyrh/endpoints.py: D
pyrh/exceptions.py: D
pyrh/robinhood.py: D
pyrh/trade_history_downloader.py: D
tests/*: D
pyrh/cache.py: DAR
# Migrate to pyproject.toml when: https://gitlab.com/pycqa/flake8/issues/428
# pytest
[tool:pytest]
addopts = -vv -x --xdoc --cov=pyrh --cov-config=setup.cfg --cov-report=term --cov-report=html
# for pycharm add --no-cov to the configuration to make covearge work
# Migrate to pyproject.toml after https://github.com/pytest-dev/pytest/issues/1556