-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (104 loc) · 2.83 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (104 loc) · 2.83 KB
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
114
115
116
[project]
name = "hg_oap"
version = "0.3.3"
description = "A library to faciliate building order and pricing strategies"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Howard Henson", email="howard@henson.me.uk"},
{ name = "Alexander Balabin", email = "balabin@me.com" },
{ name = "Simon Young", email = "whepstead@gmail.com" },
{ name = "Tope Olukemi", email = "tolukemi@gmail.com" }
]
keywords = [
"reactive", "graph", "fpg", "forward propogating graph", "time series", "functional reactive programming",
"order", "pricing", "oms"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
requires-python = ">=3.12"
dependencies = [
"hgraph[web]>=0.5.41",
"holidays >=0.56",
"polars>=1.32",
]
[project.urls]
Homepage = "https://github.com/hhenson/hg_oap"
Documentation = "https://hhenson.readthedocs.io"
Repository = "https://github.com/hhenson/hg_oap.git"
Issues = "https://github.com/hhenson/hg_oap/blob/main/ISSUES.md"
Changelog = "https://github.com/hhenson/hg_oap/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = ["src/hg_oap"]
[project.optional-dependencies]
docs = [
"sphinx>=7.4",
"sphinx_rtd_theme>=2.0.0",
"sphinx-autodoc-typehints>=2.3.0",
"sphinxcontrib-plantuml>=0.30",
"sphinxcontrib-bibtex",
"pybtex-apa-style==1.3",
]
test = [
"pytest",
"mypy",
"pytest-cov",
"coverage",
"pytest-xdist",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Configure pytest
[tool.pytest.ini_options]
minversion = "7.4.3"
addopts = "-s" #addopts = "-n 4 -ra -q --dist=loadscope" # " --cov=hgraph --cov-report=term-missing --cov-report=xml"
testpaths = [
"tests",
]
markers = [
"serial: mark test to run serially (not in parallel with xdist)",
]
# Configure coverage
[tool.coverage.run]
source_pkgs = ["hg_oap",]
branch = true
parallel = true
omit = [
"tests/*",
"examples/*",
"docs/*",
]
[tool.coverage.paths]
hg = ["src/hg_oap",]
tests = ["tests",]
[tool.coverage.report]
fail_under = 80
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 120
target-version = ['py312']
unstable = true
include = '\.pyi?$'
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
^/foo.py # exclude a file named foo.py in the root of the project
| .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
)
'''
[tool.mypy]
files = ["src",]
[project.scripts]
build-docs = "sphinx.cmd.build:main"