-
Notifications
You must be signed in to change notification settings - Fork 48
/
pyproject.toml
151 lines (141 loc) · 3.69 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[tool.poetry]
authors = [
"tomasz.rejowski <[email protected]>",
]
description = "Toolchain for developing, testing and interacting with Cairo contracts for Starknet"
license = "MIT"
name = "protostar"
readme = "README.md"
repository = "https://github.com/software-mansion/protostar"
version = "0.14.0"
[tool.poetry.dependencies]
argparse = "^1.4.0"
cairo-lang = "0.11.2"
colorama = "^0.4.6"
crypto-cpp-py = "^1.0.4"
flatdict = "^4.0.1"
hypothesis = "^6.80.0"
packaging = "^23.1"
pytest-datadir = "^1.4.1"
python = ">=3.9.14, <3.10"
requests = "^2.31.0"
starknet-py = "^0.16.1"
tomli = "<2.0.0"
tomli-w = "^1.0.0"
tqdm = "^4.65.0"
typing-extensions = "^4.3.0"
tomlkit = "^0.11.8"
maturin = "^1.1.0"
starknet-devnet = "0.5.4"
[tool.poetry.dev-dependencies]
GitPython = "^3.1.31"
black = "^23.3.0"
freezegun = "^1.2.1"
pexpect = "^4.8.0"
poethepoet = "^0.20.0"
pyinstaller = "^5.13"
pylint = "2.15.10"
pyright = "^1.1.310"
pytest = "^7.4.0"
pytest-datadir = "^1.4.1"
pytest-mock = "^3.11.1"
pytest-timeout = "^2.1.0"
pytest-xdist = "^3.3.1"
re-assert = "^1.1.0"
snakeviz = "^2.2.0"
starknet-devnet = "0.5.4"
pytest-random-order = "^1.1.0"
[tool.poe.tasks]
build = [
"write_runtime_constants",
"pyinstaller",
]
write_runtime_constants = "python ./scripts/write_runtime_constants.py"
pyinstaller = "pyinstaller protostar.spec --noconfirm"
ci = [
"type_check",
"lint",
"format_check",
"custom_checks",
"test",
]
custom_checks = "sh ./scripts/custom_checks.sh"
deploy = "python ./scripts/deploy.py"
deploy_prerelease = "python ./scripts/deploy_prerelease.py"
devnet = "starknet-devnet --seed 0"
format = "black ."
format_check = "./scripts/run_format_check.sh"
lint = "./scripts/run_lint.sh"
format_check_selected = "black --check"
lint_selected = "pylint"
install_cairo_bindings = "./scripts/install_cairo_bindings.sh"
bump_cairo_bindings = "./scripts/bump_cairo_bindings.sh"
local_static_check = [
"format",
"lint",
"type_check",
"custom_checks",
]
profile = "python -m cProfile -o recent_profiling.prof protostar.py"
show_prof = "snakeviz recent_profiling.prof"
test = [
"test_unit",
"test_integration",
"build",
"test_e2e",
]
test_cairo = "python ./binary_entrypoint.py test"
type_check = "pyright"
update_cli_docs = "python ./scripts/generate_reference_docs.py"
[tool.poe.tasks.test_e2e]
shell = "pytest -n auto tests/e2e"
[tool.poe.tasks.test_integration]
shell = "pytest -n auto --random-order scripts tests/integration"
[tool.poe.tasks.test_unit]
shell = "pytest -n auto protostar/*"
[tool.black]
target-version = [
"py39",
]
[tool.isort]
profile = "black"
lines_between_sections = 1
only_sections = true
[tool.pyright]
exclude = [
"**/__pycache__",
"./.venv",
"./playground",
]
reportCallInDefaultInitializer = true
reportConstantRedefinition = true
reportDuplicateImport = true
reportFunctionMemberAccess = true
reportImportCycles = false
reportIncompatibleVariableOverride = true
reportInconsistentConstructor = true
reportInvalidStubStatement = true
reportMatchNotExhaustive = true
reportOverlappingOverload = true
reportPropertyTypeMismatch = true
reportTypeCommentUsage = true
reportUninitializedInstanceVariable = true
reportUnknownLambdaType = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportUnnecessaryIsInstance = true
reportUntypedClassDecorator = true
reportUntypedFunctionDecorator = true
reportUntypedNamedTuple = true
reportUnusedClass = true
reportIncompatibleMethodOverride = true
strictDictionaryInference = true
strictListInference = true
strictSetInference = true
useLibraryCodeForTypes = true
reportMissingParameterType = true
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core>=1.0.0",
]