forked from software-mansion/protostar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (99 loc) · 3.22 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
[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.2.6"
[tool.poetry.dependencies]
GitPython = "^3.1.26"
argparse = "^1.4.0"
cairo-lang = "^0.9.0"
colorama = "^0.4.4"
crypto-cpp-py = "^1.0.4"
flatdict = "^4.0.1"
packaging = "^21.3"
pytest-datadir = "^1.3.1"
python = ">=3.7.12, <3.10"
requests = "^2.27.1"
"starknet.py" = "^0.3.0-alpha.0"
tomli = "<2.0.0"
tomli-w = "^1.0.0"
tqdm = "^4.64.0"
typing-extensions = "^4.0.1"
[tool.poetry.dev-dependencies]
black = "^22.1.0"
coverage = "^6.3.1"
pexpect = "^4.8.0"
poethepoet = "^0.12.2"
pyinstaller = "^4.9"
pylint = "^2.12.2"
pyright = "^1.1.254"
pytest = "^6.2.5"
pytest-cov = "^3.0.0"
pytest-datadir = "^1.3.1"
pytest-mock = "^3.7.0"
pytest-timeout = "^2.1.0"
snakeviz = "^2.1.1"
starknet-devnet = "^0.2.3"
[tool.poe.tasks]
build = "pyinstaller protostar.spec --noconfirm"
ci = ["type_check", "lint", "format_check", "custom_checks", "test"]
cov = "pytest --cov-report xml:cov.xml --cov=protostar"
custom_checks = "sh ./scripts/custom_checks.sh"
deploy = "python ./scripts/deploy.py"
deploy_prerelease = "python ./scripts/deploy_prerelease.py"
format = "black ."
format_check = "black --check protostar"
lint = "pylint protostar"
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"
test_e2e.shell = "pytest tests/e2e"
test_html = [{shell = "coverage html && open ./htmlcov/index.html"}]
test_integration.shell = "coverage run -a -m pytest tests/integration"
test_report = [{shell = "coverage report"}]
test_unit.shell = "coverage run -m pytest protostar/*"
type_check = "pyright"
update_cli_docs = "python ./scripts/generate_reference_docs.py"
[tool.coverage.run]
source = ["protostar"]
[tool.coverage.report]
skip_empty = true
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.black]
target-version = ["py37"]
[tool.isort]
lines_between_sections = 1
[tool.pyright]
exclude = ["**/__pycache__", "./.venv", "./playground"]
reportCallInDefaultInitializer = true
reportConstantRedefinition = true
reportDuplicateImport = true
reportFunctionMemberAccess = true
reportImportCycles = false # ignores TYPE_CHECKING
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
strictDictionaryInference = true
strictListInference = true
strictSetInference = true
useLibraryCodeForTypes = true