-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
84 lines (74 loc) · 2.09 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
[build-system]
requires = [ "poetry-core",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "substrate"
version = "220240617.1.8"
description = "Substrate Python SDK"
readme = "README.md"
authors = [ "vprtwn <[email protected]>", "liamgriffiths <[email protected]>",]
[[tool.poetry.packages]]
include = "substrate"
[tool.pyright]
typeCheckingMode = "basic"
pythonVersion = "3.7"
exclude = [ ".venv",]
[tool.mypy]
pretty = true
show_error_codes = true
strict_equality = true
implicit_reexport = true
check_untyped_defs = true
no_implicit_optional = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
cache_fine_grained = true
warn_unused_ignores = false
warn_redundant_casts = false
[tool.ruff]
line-length = 120
output-format = "grouped"
target-version = "py310"
exclude = [ "examples/notebooks",]
[tool.poetry.dependencies]
python = ">=3.9"
cloudpickle = "3.0.0"
networkx = ">=3.2.1"
httpx = ">=0.26.0"
distro = ">=1.8.0"
typing-extensions = "^4.10.0"
pydantic = ">=1.0.0"
httpx-sse = "^0.4.0"
[tool.ruff.lint]
ignore-init-module-imports = true
ignore = [ "B006", "T201", "T203", "ARG002", "ARG001",]
unfixable = [ "T201", "T203",]
select = [ "I", "B", "F401", "E722", "ARG", "TCH004",]
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
markers = [ "unit: tests intended to be run against only local code - no external integrations", "e2e: tests intended to encapsulate the entire lifecycle of an interaction with the substrate system",]
[tool.ruff.lint.isort]
length-sort = true
length-sort-straight = true
combine-as-imports = true
extra-standard-library = [ "typing_extensions",]
known-first-party = [ "substrate", "tests",]
[tool.poetry.group.dev.dependencies]
pyright = ">=1.1.342"
ruff = "^0.2.1"
pytest = "^8.0.0"
types-networkx = "^3.2.1.20240205"
types-toml = "^0.10.8.7"
toml = "^0.10.2"
marimo = ">=0.3.2"
pre-commit = "^3.6.2"
twine = "^5.0.0"
fastapi = "^0.111.0"