forked from edtechre/pybroker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
113 lines (99 loc) · 2.08 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
109
110
111
112
113
[metadata]
name = lib-pybroker
version = attr: pybroker.__version__
url = http:https://www.pybroker.com
author = Edward West
author_email = [email protected]
description = Algorithmic trading with machine learning
long_description = file: README.md
long_description_content_type = text/markdown
license = Apache License 2.0 with Commons Clause
license_files = LICENSE
classifiers = License :: Free for non-commercial use
[options]
package_dir =
=src
packages = find:
include_package_data = True
install_requires =
akshare>=1.10.1,<2
alpaca-py>=0.7.2,<1
diskcache>=5.4.0,<6
joblib>=1.2.0,<2
numba>=0.56.3,<1
numpy>=1.23.4,<2
pandas>=1.5.1,<3
progressbar2>=4.1.1,<5
yfinance>=0.1.84,<1
[options.packages.find]
where = src
exclude =
tests*
[mypy]
python_version = 3.9
warn_unused_configs = True
show_error_context = True
pretty = True
namespace_packages = True
check_untyped_defs = True
[flake8]
per-file-ignores =
src/pybroker/*.py:E203,E402
src/pybroker/__init__.py:F401,E402
tests/*.py:E203,E402
tests/test_*:E203,E402,F403,F405
[tox:tox]
envlist = py39,py310,py311
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
pytest-instafail
pytest-randomly
pytest-xdist
commands =
pytest {posargs}
[testenv:typecheck]
deps =
mypy
commands =
mypy --show-error-codes --ignore-missing-imports {posargs:src}
[testenv:format]
skip_install = True
deps =
black
commands =
black {posargs:--check --diff src tests}
[testenv:lint]
skip_install = True
deps =
flake8
flake8-bugbear
commands =
flake8 {posargs:src tests}
[testenv:docs]
deps =
nbsphinx
sphinx
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/pybroker/
sphinx-build -n -W --keep-going -b html docs/ docs/_build/
[tool:pytest]
testpaths = tests
addopts = --strict-markers
xfail_strict = True
[coverage:run]
branch = True
[coverage:report]
show_missing = True
[coverage:paths]
source =
src/pybroker
*/site-packages/pybroker