-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (78 loc) · 2.17 KB
/
pyproject.toml
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
[tool.poetry]
name = "merqube-client-lib"
version = "0.23.0"
description = "MerQube IndexAPI + SecAPI client library"
authors = ["Merqube"]
readme = "README.md"
license = "APACHE-2.0"
homepage = "https://github.com/merqube/merqube-client-lib"
include = [
"LICENSE",
]
[tool.poetry.dependencies]
cachetools = "^5.2.0"
boto3 = {version="*"}
click = "~8"
Flask = "~2"
Flask-Cors = "~3"
python = "^3.10,<4.0"
pydantic = {"version" = ">=2.1.0, < 3"}
pandas = ">=1.3.0, <3.0.0"
pandas_market_calendars = "*"
requests = "*"
[tool.poetry.scripts]
create = "merqube_client_lib.templates.bin.create_index:main"
get_example = "merqube_client_lib.templates.bin.get_example:main"
# currently EB specific but might move:
update_portfolio = "merqube_client_lib.templates.equity_baskets.bin.update_portfolio:main"
[tool.poetry.dev-dependencies]
coverage = {version="*"}
pdbpp = {version="*"}
pytest = {version="*"}
types-pytz = {version="*"}
pytest-cov = {version="*"}
pytest-timeout = {version="*"}
pytest-socket = {version="*"}
freezegun = {version="*"}
mypy = {version="*"}
types-cachetools = {version="*"}
types-flask = {version="*"}
types-requests = {version="*"}
types-retry = {version="*"}
pytest-xdist = {extras = ["psutil"], version = "^2.5.0"}
tzlocal = {"version" = "5.0.1"}
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.isort]
profile = "black"
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
[tool.mypy]
ignore_missing_imports = true
# the pydantic types file is autogenerated and overwritten each time
exclude = [
"merqube_client_lib/mocker.py",
"merqube_client_lib/pydantic_v2_types.py"
]
disable_error_code = [
]
[tool.pyright]
# missing types in 3rd parties:
reportMissingImports = false
reportMissingModuleSource = false
exclude = [
"merqube_client_lib/pydantic_v2_types.py"
]
# https://mypy.readthedocs.io/en/stable/config_file.html#example-pyproject-toml
# https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker
[[tool.mypy.overrides]]
module = [
"flask_cors",
"pandas",
"boto3",
"botocore",
"regex",
]