forked from ki-oss/hades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
80 lines (67 loc) · 1.74 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
[tool.poetry]
name = "hades-framework"
version = "2.0.0"
description = "Hades Asynchronous Discrete-Event Simulation"
authors = ["Ki Insurance Team", "Reuben Thomas-Davis <[email protected]>", "Keith Kam <[email protected]>"]
license = "Apache License 2.0"
readme = "README.pypi.md"
packages = [
{include="hades"}
]
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.8.2"
networkx = {version = "^3.1", optional = true}
networkx-stubs = {version = "^0.0.1", optional = true}
websockets = "^11.0.3"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
isort = "^5.12.0"
black = "^23.3.0"
blacken-docs = "^1.13.0"
mypy = "^1.3.0"
import-linter = "^1.9.0"
coverage = "^7.2.6"
pytest-asyncio = "^0.21.0"
mkdocstrings = {extras = ["python"], version = "^0.22.0"}
mkdocs = "^1.4.3"
mkdocs-material = "^9.1.15"
pymdown-extensions = "^10.0.1"
openai = "^0.27.7"
httpx = "^0.24.1"
tiktoken = ">=0.3.0"
feedparser = "^6.0.10"
pycln = "^2.1.5"
[tool.poetry.extras]
visualisation = ["networkx", "networkx-stubs", "websockets"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
exclude = "docs"
[tool.isort]
profile = "black"
line_length = 120
src_paths = ["hades"]
[tool.mypy]
files = ["hades/"]
[[tool.mypy.overrides]]
module = "networkx.*"
ignore_missing_imports = "True"
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = ["performance", "example"]
[tool.coverage.run]
source = ["hades"]
[tool.importlinter]
root_package = "hades"
[[tool.importlinter.contracts]]
name = "hades.core may not import from hades.time"
type = "layers"
layers=["hades.time", "hades.core"]