forked from IntersectMBO/cardano-node-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
145 lines (126 loc) · 4.33 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
[tool.poetry]
name = "cardano-node-tests"
version = "0.1.0"
description = "Functional tests for cardano-node"
license = "Apache License 2.0"
authors = [
"Martin Kourim <[email protected]>",
"Sara Tomaz <[email protected]>",
"Artur Wieczorek <[email protected]>",
"Dorin Solomon <[email protected]>",
]
readme = "README.md"
homepage = "https://tests.cardano.intersectmbo.org/"
repository = "https://github.com/IntersectMBO/cardano-node-tests"
documentation = "https://tests.cardano.intersectmbo.org/"
keywords = ["cardano", "cardano-node", "cardano-cli", "cardano-node-tests"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Testing",
]
packages = [{include = "cardano_node_tests"}]
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
allure-pytest = "^2.13.5"
cardano-clusterlib = "^0.7.0a4"
cbor2 = "^5.6.5"
filelock = "^3.16.1"
hypothesis = "^6.118.8"
psycopg2-binary = "^2.9.10"
pydantic = "^2.9.2"
pygithub = "^2.5.0"
pytest = "^8.3.3"
pytest-html = "^4.1.1"
pytest-metadata = "^3.1.1"
pytest-order = "^1.3.0"
pytest-select = "^0.1.2"
pytest-xdist = "^3.6.1"
PyYAML = "^6.0.2"
requests = "^2.32.3"
pytest-subtests = "^0.13.1"
supervisor = "^4.2.5"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
types-PyYAML = "^6.0.12.20240917"
types-requests = "^2.32.0.20241016"
mypy = "^1.13.0"
ipython = "^8.29.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
Sphinx = "^8.1.3"
m2r2 = "^0.3.3.post2"
sphinx-rtd-theme = "^3.0.1"
sphinxemoji = "^0.3.1"
[tool.poetry.scripts]
testnet-cleanup = "cardano_node_tests.testnet_cleanup:main"
defragment-utxos = "cardano_node_tests.defragment_utxos:main"
prepare-cluster-scripts = "cardano_node_tests.prepare_cluster_scripts:main"
split-topology = "cardano_node_tests.split_topology:main"
cardano-cli-coverage = "cardano_node_tests.cardano_cli_coverage:main"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/IntersectMBO/cardano-node-tests/issues"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["ARG", "B", "C4", "C90", "D", "DTZ", "E", "EM", "F", "FURB", "I001", "ISC", "N", "PERF", "PIE", "PL", "PLE", "PLR", "PLW", "PT", "PTH", "Q", "RET", "RSE", "RUF", "SIM", "TRY", "UP", "W", "YTT"]
ignore = ["B905", "D10", "D203", "D212", "D213", "D214", "D215", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D413", "ISC001", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PT001", "PT007", "PT012", "PT018", "PT023", "PTH123", "RET504", "TRY002", "TRY301", "UP006", "UP007", "UP035"]
[tool.ruff.lint.per-file-ignores]
"cardano_node_tests/utils/model_ekg.py" = ["N815"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.pytype]
python_version = "3.11"
disable = ["import-error"]
[tool.mypy]
python_version = "3.11"
show_error_context = true
verbosity = 0
ignore_missing_imports = true
follow_imports = "normal"
no_implicit_optional = true
allow_untyped_globals = false
allow_untyped_defs = false
warn_unused_configs = true
warn_return_any = true
[[tool.mypy.overrides]]
module = "cardano_node_tests.tests.*"
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "cardano_node_tests.*.conftest"
allow_untyped_defs = false
[[tool.mypy.overrides]]
module = "framework_tests.*"
allow_untyped_defs = true
[tool.pytest.ini_options]
log_cli = true
log_level = "INFO"
addopts = "-ra -vvv"
filterwarnings = [
# TODO - not necessary for up-to-date hypothesis
"ignore:.*You can change it to a module- or session-scoped fixture.*:FutureWarning",
]
markers = [
"dbsync: test(s) for node + otionaly cardano-db-sync",
"needs_dbsync: test(s) for cardano-db-sync",
"testnets: test(s) can run on testnets, like Shelley_qa",
"long: test(s) run for a long time on testnets",
"smoke: fast test(s) under 1 minute",
"upgrade_step1: test(s) for upgrade testing in step1",
"upgrade_step2: test(s) for upgrade testing in step2",
"upgrade_step3: test(s) for upgrade testing in step3",
"plutus: test(s) for plutus",
"team_plutus: test(s) from Plutus dev team",
"disabled: temporarily disabled test(s)",
"noop: placeholder marker",
]