-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
332 lines (297 loc) · 8.44 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
[build-system]
requires = ["hatchling>=1.24.2"]
build-backend = "hatchling.build"
[project]
name = "robotcode"
description = "Command line interface for RobotCode"
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",
"Robotic Process Automation",
"RPA",
"Language Server Protocol",
"Debug Adapter Protocol",
"Visual Studio Code",
]
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 :: 3.13",
"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 :: Tool",
]
requires-python = ">=3.8"
dependencies = [
"robotcode-core==0.103.0",
"robotcode-plugin==0.103.0",
"robotcode-robot==0.103.0",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://robotcode.io"
Donate = "https://opencollective.com/robotcode"
Documentation = "https://github.com/robotcodedev/robotcode#readme"
Changelog = "https://github.com/robotcodedev/robotcode/blob/main/CHANGELOG.md"
Issues = "https://github.com/robotcodedev/robotcode/issues"
Source = "https://github.com/robotcodedev/robotcode"
[project.scripts]
robotcode = "robotcode.cli.__main__:main"
[project.optional-dependencies]
debugger = ["robotcode-debugger==0.103.0"]
languageserver = ["robotcode-language-server==0.103.0"]
runner = ["robotcode-runner==0.103.0"]
analyze = ["robotcode-analyze==0.103.0"]
yaml = ["PyYAML>=5.4"]
lint = ["robotframework-robocop>=2.0.0"]
tidy = ["robotframework-tidy>=2.0.0"]
rest = ["docutils"]
repl = ["robotcode-repl==0.103.0"]
replserver = ["robotcode-repl-server==0.103.0"]
colored = ["rich"]
all = [
"robotcode-debugger==0.103.0",
"robotcode-language-server==0.103.0",
"robotcode-runner==0.103.0",
"robotcode-analyze==0.103.0",
"robotcode-repl==0.103.0",
"robotcode-repl-server==0.103.0",
"PyYAML>=5.4",
"robotframework-robocop>=2.0.0",
"robotframework-tidy>=2.0.0",
"docutils",
"rich",
]
[tool.semantic_release]
version_variable = [
"src/robotcode/cli/__version__.py:__version__",
"packages/analyze/src/robotcode/analyze/__version__.py:__version__",
"packages/core/src/robotcode/core/__version__.py:__version__",
"packages/debugger/src/robotcode/debugger/__version__.py:__version__",
"packages/jsonrpc2/src/robotcode/jsonrpc2/__version__.py:__version__",
"packages/language_server/src/robotcode/language_server/__version__.py:__version__",
"packages/modifiers/src/robotcode/modifiers/__version__.py:__version__",
"packages/plugin/src/robotcode/plugin/__version__.py:__version__",
"packages/robot/src/robotcode/robot/__version__.py:__version__",
"packages/runner/src/robotcode/runner/__version__.py:__version__",
]
version_pattern = [
'package.json:"version": "{version}"',
"packages/analyze/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/core/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/debugger/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/jsonrpc2/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/language_server/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/modifiers/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/plugin/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/robot/pyproject.toml:\"robotcode\\S*=={version}\"",
"packages/runner/pyproject.toml:\"robotcode\\S*=={version}\"",
"pyproject.toml:\"robotcode\\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 = "robotcode"
# console_output_style = "classic"
log_cli = true
# log_cli_level = 4
# log_cli_format = "%(levelname)s %(name)s: %(message)s"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
faulthandler_timeout = 30
[tool.coverage.run]
omit = ["*tests*"]
source = ["robotcode"]
[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", ".hatch"]
[tool.ruff.lint]
ignore = ["E741", "N805", "N999", "RUF012", "RUF006", "ISC001"]
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.lint.per-file-ignores]
#"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
detect-same-package = true
known-first-party = ["robotcode"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[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_reexport = false
implicit_optional = true
disallow_untyped_decorators = false
disallow_subclassing_any = false
explicit_package_bases = true
namespace_packages = true
exclude = [
'^\.mypy_cache/',
'^\.venv/',
'^\.hatch/',
"^build/",
"^dist/",
"^out/",
"^playground/",
"^scripts/",
"^bundled/libs/",
]
mypy_path = [
"typings",
"src",
"packages/core/src",
"packages/debugger/src",
"packages/jsonrpc2/src",
"packages/language_server/src",
"packages/modifiers/src",
"packages/plugin/src",
"packages/robot/src",
"packages/runner/src",
"packages/analyze/src",
"packages/repl/src",
"packages/repl_server/src",
]
# allow_untyped_calls = true
[[tool.mypy.overrides]]
module = [
"robot.*",
"robotremoteserver.*",
"debugpy.*",
"robotidy.*",
"robocop.*",
"pluggy",
]
ignore_missing_imports = true
no_implicit_reexport = false
# [tool.hatch.build.targets.wheel.hooks.mypyc]
# enable-by-default = false
# dependencies = ["hatch-mypyc", "types-PyYAML", "types-docutils"]
# require-runtime-dependencies = true
# include = [
# "robotcode/utils/glob_path.py",
# "robotcode/language_server/robotframework/diagnostics/analyzer.py",
# ]
# exclude = ["__main__.py", "__version__.py", "__init__.py", "typings", "tests"]
# [tool.hatch.build.targets.wheel.hooks.mypyc.options]
# # opt_level = "3"
# multi_file = true
#separate = true
#verbose = true
#include_runtime_files = false
[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 .",
]
[tool.robotcode-analyze.extend-modifiers]
information = ["info_from_pyproject_toml"]
extend-hint = ["a_hint_from_pyproject_toml"]