-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (94 loc) · 2.73 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# https://github.com/python-poetry/poetry/issues/34#issuecomment-997519115
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "amirainvest.com"
version = "0.1.0"
description = ""
authors = ["Peter Hoburg <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.9"
backend_amirainvest_com = {path = "./src/backend_amirainvest_com", develop = true}
brokerage_amirainvest_com = {path = "./src/brokerage_amirainvest_com", develop = true}
common_amirainvest_com = {path = "./src/common_amirainvest_com", develop = true}
data_imports_amirainvest_com = {path = "./src/data_imports_amirainvest_com", develop = true}
market_data_amirainvest_com = {path = "./src/market_data_amirainvest_com", develop = true}
numpy = "^1.22.2"
[tool.poetry.dev-dependencies]
alembic = "*"
black = "*"
factory-boy = "*"
flake8 = "*"
httpx = "*"
isort = "*"
mypy = "*"
pre-commit = "^2"
psycopg2-binary = "^2"
pytest = "*"
pytest-asyncio = "^0"
pytest-cov = "*"
SQLAlchemy = {extras = ["mypy"], version = "*"}
types-python-dateutil = "*"
types-requests = "*"
types-setuptools = "*"
types-toml = "*"
types-pytz = "^2021.3.5"
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
#
#[tool.mypy]
#plugins = [
# "sqlalchemy.ext.mypy.plugin",
## "pydantic.mypy", # Waiting for 1.9.0 to be released. https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin
# ]
#mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
#namespace_packages = false
##explicit_package_bases = true
#
#[[tool.mypy.overrides]]
#module="factory"
#ignore_missing_imports = true
#
#[[tool.mypy.overrides]]
#module = [
# "pytest",
#]
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
include_trailing_comma = "True"
force_grid_wrap = 0
use_parentheses = "True"
combine_as_imports = "True"
force_alphabetical_sort_within_sections = "True"
ensure_newline_before_comments = "True"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
lines_after_imports = 2
[tool.pytest.ini_options]
minversion = "6.0"
addopts = """
--strict-markers
--cov=src/common_amirainvest_com/lib
--cov=src/backend_amirainvest_com/lib
--cov=src/brokerage_amirainvest_com/lib
--cov=src/data_imports_amirainvest_com/lib
--cov=src/market_data_amirainvest_com/lib
--cov-report term
--cov-report html
"""
testpaths = [
"src/common_amirainvest_com/test",
"src/backend_amirainvest_com/test",
"src/brokerage_amirainvest_com/test",
"src/data_imports_amirainvest_com/test",
"src/market_data_amirainvest_com/test",
]
asyncio_mode = "auto"
markers = [
"unit_test: Used to mark tests that do not use ANY outside resources",
"integration_test: Used to mark tests that DO call outside resorces",
]