-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
229 lines (204 loc) · 5.24 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
[build-system]
requires = ["hatchling>=1.12.2"]
build-backend = "hatchling.build"
[project]
name = "robotframework-gherkin-parser"
description = "Gherkin parser for Robot Framework"
authors = [{ name = "Daniel Biehl", email = "dbiehl@live.de" }]
readme = { "file" = "README.md", "content-type" = "text/markdown" }
license = { text = "Apache-2.0" }
keywords = [
"Test",
"Testing",
"RobotFramework",
"Keyword Driven",
"Data Driven",
"Acceptance Testing",
"Acceptance Test Driven Development",
"BDD",
"Behavior Driven Testing",
"BDT",
"Gherkin",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Acceptance",
"Topic :: Software Development :: Testing :: BDD",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Utilities",
"Typing :: Typed",
"Topic :: Software Development :: Debuggers",
"Topic :: Text Editors :: Integrated Development Environments (IDE)",
"Intended Audience :: Developers",
"Framework :: Robot Framework",
"Framework :: Robot Framework :: Library",
"Framework :: Robot Framework :: Tool",
]
requires-python = ">=3.8"
dependencies = ["robotframework>=7.0", "gurke==0.3.2"]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/d-biehl/robotframework-gherkin-parser"
Donate = "https://github.com/sponsors/d-biehl"
Documentation = "https://github.com/d-biehl/robotframework-gherkin-parser#readme"
Changelog = "https://github.com/d-biehl/robotframework-gherkin-parser/blob/main/CHANGELOG.md"
Issues = "https://github.com/d-biehl/robotframework-gherkin-parser/issues"
Source = "https://github.com/d-biehl/robotframework-gherkin-parser"
[tool.semantic_release]
version_variable = [
"src/GherkinParser/__version__.py:__version__",
"packages/gurke/src/gurke/__version__.py:__version__",
]
version_pattern = [
'package.json:"version": "{version}"',
"packages/gurke/pyproject.toml:\"robotcode\\S*=={version}\"",
"pyproject.toml:\"robotcode\\S*=={version}\"",
"pyproject.toml:\"gurke\\S*=={version}\"",
]
branch = "main"
upload_to_release = false
upload_to_repository = false
build_command = "pip install hatch && hatch build"
[tool.black]
line-length = 120
target-version = ['py38']
extend-exclude = '''
(
/(
| bundled/libs
)/
)
'''
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -vv -rf --ignore=bundled --ignore=.hatch"
filterwarnings = "ignore:.*Using or importing the ABCs from 'collections' instead of from 'collections.abc'.*:DeprecationWarning"
testpaths = ["tests"]
junit_suite_name = "GherkinParser Tests"
# console_output_style = "classic"
# log_cli = true
# log_cli_level = 4
# log_cli_format = "%(levelname)s %(name)s: %(message)s"
asyncio_mode = "auto"
faulthandler_timeout = 30
[tool.coverage.run]
omit = ["*tests*"]
source = ["GherkinParser"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
fail_under = 40
[tool.ruff]
line-length = 120
target-version = "py38"
extend-exclude = ["bundled/libs"]
ignore = ["E741", "N805", "N999"]
select = [
"E",
"F",
"W",
"I",
"N",
#"UP",
"YTT",
#"ANN",
#"BLE",
#"B",
#"A"
#"COM"
# "C4", # TODO enable this
"DTZ",
"T10",
# "EM",
"ISC",
"G",
#"INP",
"PIE",
# "T20",
"PT",
"Q",
"RET",
# "SIM", # TODO enable this
# "TID",
# "TCH",
# "ARG",
# "PTH", # TODO enable this
# "SLF", # TODO enable this
# "ERA", # TODO enable this
"RSE",
# "PL",
#"TRY",
"RUF",
# "TID"
]
[tool.ruff.per-file-ignores]
#"__init__.py" = ["F401"]
[tool.mypy]
python_version = "3.8"
strict = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
warn_unreachable = true
implicit_optional = true
# disallow_untyped_decorators = false
disallow_subclassing_any = false
exclude = [
"\\.mypy_cache",
"\\.venv",
"\\.hatch",
"build",
"dist",
"out",
"playground",
"scripts",
"bundled/libs",
]
mypy_path = ["typings", "src", "packages/gurke/src"]
explicit_package_bases = true
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"robot.*",
"debugpy.*",
"robotidy.*",
"robocop.*",
"pytest_regtest.*",
"pluggy",
]
ignore_missing_imports = true
[tool.pyright]
exclude = ["**/.hatch", "**/node_modules", "**/__pycache__", "bundled/libs"]
typeCheckingMode = "off"
pythonVersion = "3.8"
[tool.commitizen]
name = "cz_conventional_commits"
bump_message = "chore(release): bump version $current_version → $new_version"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "scm"
update_changelog_on_bump = false
major_version_zero = true
changelog_incremental = true
changelog_merge_prerelease = true
gpg_sign = true
annotated_tag = true
pre_bump_hooks = [
"hatch env remove lint",
"hatch run build:update-git-versions",
"hatch run build:update-changelog",
"git add .",
]