-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hatch.toml
130 lines (106 loc) · 2.87 KB
/
hatch.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
[version]
path = "src/GherkinParser/__version__.py"
[build]
dev-mode-dirs = ["src"]
[build.targets.wheel]
only-include = ["src/GherkinParser"]
sources = ["src"]
[build.targets.sdist]
only-include = ["src", "CHANGELOG.md"]
[envs.default]
dependencies = [
"pytest",
"pytest-html",
"pytest_asyncio",
"pytest-regtest>=1.5.0",
"pytest-cov",
"mypy",
"ruff",
"black",
"debugpy",
"GitPython",
"semantic-version",
]
pre-install-commands = ["install-packages"]
[envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=GherkinParser --cov=tests {args}"
no-cov = "cov --no-cov {args}"
test = "pytest {args}"
test-reset = "test --regtest-reset"
install-bundled-editable = "python ./scripts/install_bundled_editable.py"
install-packages = "python ./scripts/install_packages.py"
[envs.rfmaster]
python = "3.11"
extra-dependencies = [
"robotframework @ git+https://github.com/robotframework/robotframework.git",
]
[envs.rfdevel]
python = "3.11"
post-install-commands = ["pip install -U -e {root:uri}/../robotframework"]
[envs.py312_rfmaster]
python = "3.12"
extra-dependencies = [
"robotframework @ git+https://github.com/robotframework/robotframework.git",
]
[envs.devel]
python = "3.8"
[[envs.devel.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
rf = ["rf70"]
[envs.devel.overrides]
matrix.rf.dependencies = [
{ value = "robotframework>=7.0, <7.1", if = [
"rf70",
] },
]
[[envs.test.matrix]]
rf = ["rf70", "master"]
[envs.test.overrides]
matrix.rf.dependencies = [
{ value = "robotframework==7.0, <7.1", if = [
"rf70",
] },
]
[envs.lint]
#skip-install = true
#extra-dependencies = ["tomli>=2.0.0"]
[envs.lint.scripts]
typing = ["mypy --install-types --non-interactive {args:.}"]
style = ["ruff .", "black --check --diff ."]
fmt = ["black .", "ruff --fix .", "style"]
all = ["style", "typing"]
[envs.pages]
#detached = true
extra-dependencies = [
"mkdocs>=1.4.2",
"mkdocs-material",
# Plugins
"mkdocs-minify-plugin",
"mkdocs-git-revision-date-localized-plugin",
"mkdocstrings-python",
"mkdocs-redirects",
"mkdocs-glightbox",
# Extensions
"mkdocs-click~=0.8.0",
"pymdown-extensions~=9.6.0",
# Necessary for syntax highlighting in code blocks
"pygments",
"mike",
]
[envs.pages.scripts]
build = ["mkdocs build"]
deploy = ["python scripts/deploy_docs.py"]
[envs.build]
skip-install = true
detached = true
python = "38"
dependencies = ["GitPython", "semantic-version", "commitizen", "git-cliff"]
[envs.build.scripts]
update-changelog = ["python scripts/update_changelog.py"]
update-git-versions = ["python scripts/update_git_versions.py"]
update-doc-links = ["python scripts/update_doc_links.py"]
package = ["python scripts/package.py"]
publish = ["python scripts/publish.py"]
extract-release-notes = ["python scripts/extract_release_notes.py"]
is-prerelease = ["python scripts/is_prerelease.py"]
bump = ["cz bump"]