/
pyproject.toml
137 lines (118 loc) · 3.94 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
[tool.poetry]
name = "cardano-node-tests"
version = "0.1.0"
description = "Functional tests for cardano-node"
license = "Apache License 2.0"
authors = [
"Martin Kourim <martin.kourim@iohk.io>",
"Sara Tomaz <sara.tomaz@iohk.io>",
"Artur Wieczorek <artur.wieczorek@iohk.io>",
"Dorin Solomon <dorin.solomon@iohk.io>",
]
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.9,<4.0"
allure-pytest = "^2.13.2"
cardano-clusterlib = "^0.6.0a18"
cbor2 = "^5.4.6"
filelock = "^3.12.2"
hypothesis = "^6.82.6"
psycopg2-binary = "^2.9.7"
pydantic = "^2.2.1"
pygithub = "^1.59.1"
pytest = "^7.4.0"
pytest-html = "^3.2.0"
pytest-metadata = "^3.0.0"
pytest-order = "^1.1.0"
pytest-select = "^0.1.2"
pytest-xdist = "~3.3.1"
PyYAML = "^6.0.1"
requests = "^2.31.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.3"
types-PyYAML = "^6.0.12.11"
types-requests = "^2.31.0.2"
mypy = "^1.5.1"
ipython = "^8.14.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
Sphinx = "^4.5.0"
m2r2 = "^0.3.2"
sphinx-rtd-theme = "^1.2.0"
sphinxemoji = "^0.2.0"
[tool.poetry.scripts]
testnet-cleanup = "cardano_node_tests.testnet_cleanup: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", "I001", "ISC", "N", "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", "PT004", "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.10"
disable = ["import-error"]
[tool.mypy]
python_version = "3.10"
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: test(s) for upgrade testing",
"plutus: test(s) for plutus",
]