-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (68 loc) · 2.3 KB
/
pyproject.toml
File metadata and controls
83 lines (68 loc) · 2.3 KB
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
[build-system]
requires = ["hatchling<=1.18.0", "hatch-vcs"]
build-backend = "hatchling.build"
[project.optional-dependencies]
develop = [
"hatch==1.7.0",
"hatchling==1.18.0",
"click<8.3.0", # fix to a pre 8.3.0 version until https://github.com/pypa/hatch/issues/2050 resolved
"black==24.10.0",
"isort==5.12.0",
"pre-commit==3.3.3",
"pip==25.2",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
source = "vcs"
[project]
name = "rally-tracks"
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.10"
[tool.hatch.build.targets.sdist]
exclude = [
"/.buildkite",
"/.github",
"/.ci",
]
[tool.hatch.envs.default]
dependencies = [
"esrally[develop] @ git+https://github.com/elastic/rally.git@master"
]
[tool.hatch.envs.it]
extra-dependencies = [
"pytest-rally @ git+https://github.com/elastic/pytest-rally.git@main"
]
[tool.hatch.envs.it_serverless]
extra-dependencies = [
"pytest-rally @ git+https://github.com/elastic/pytest-rally.git@main"
]
[tool.hatch.envs.unit]
extra-dependencies = [
"geneve==0.3.0",
"elastic-package-assets @ git+https://github.com/elastic/package-assets.git@main"
]
[tool.hatch.envs.unit.scripts]
test = "pytest {args}"
[tool.hatch.envs.it.scripts]
test = "pytest it_tracks --log-cli-level=INFO {args}"
[tool.hatch.envs.it_serverless.scripts]
test_user = "pytest -s it_tracks_serverless --log-cli-level=INFO {args}"
test_operator = "pytest -s it_tracks_serverless --log-cli-level=INFO --operator {args}"
[tool.pytest.ini_options]
# set to true for more verbose output of tests
log_cli = false
addopts = "--verbose --color=yes --ignore=it_tracks --ignore=it_tracks_serverless"
junit_family = "xunit2"
junit_logging = "all"
asyncio_mode = "strict"
markers = [
'track(name): Optionally associate a test class, function or module with a track. Usage: @pytest.mark.track("track1", "track2"). You can use a comma-separated list of track names. When given the --track-filter option (--track-filter=track1,track3), pytest will only run the tests marked with at least one of the track names. Unmarked objects will run by default.',
'es_cluster_car(car): mark test with the car to use for the es_cluster fixture',
]
[tool.black]
line-length = 140
target-version = ['py310', 'py311', 'py312', 'py313']
[tool.isort]
profile = 'black'