-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (155 loc) · 3.1 KB
/
Copy pathpyproject.toml
File metadata and controls
177 lines (155 loc) · 3.1 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
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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.testbench2robotframework.console-logging]
logLevel = "DEBUG"
[project]
name = "testbench2robotframework"
authors = [
{name = "imbus AG", email = "support@imbus.de"},
]
description = "Robot Framework Code Generator from Keyword-Driven Tests in imbus TestBench 3.0 and newer"
requires-python = ">= 3.10"
readme = "README.md"
license = {text = "Apache 2.0 License"}
dynamic = ["version"]
dependencies = [
"click >= 8.0",
"robotframework >= 5.0",
"tomli; python_version < '3.11'",
]
[project.optional-dependencies]
dev = [
"build",
"check-manifest",
"flit",
"invoke",
"mypy",
"pylint",
"pytest",
"pytest-cov",
"pytest-spec",
"robotframework-tidy",
"ruff",
"twine",
]
[project.scripts]
tb2robot = "testbench2robotframework.cli:testbench2robotframework_cli"
testbench2robotframework = "testbench2robotframework.cli:testbench2robotframework_cli"
[project.urls]
Repository = "https://github.com/imbus/testbench2robotframework"
[tool.check-manifest]
ignore = [
"config.json",
"*.bat",
"*.sh",
"*.zip",
"tests/**"
]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
no_implicit_optional = true
strict_optional = true
warn_return_any = true
warn_no_return = true
warn_unreachable = true
pretty = true
[tool.ruff]
target-version = "py39"
line-length = 100
lint.select = [
"A",
"B",
"C",
"DTZ",
"E",
"F",
"I",
"ICN",
"INP",
"ISC",
"N",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"T20",
"UP",
"W"
]
lint.ignore = [
"ISC001"
]
exclude = [
"__pycache__",
"config.py",
"model.py",
"tests"
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --spec"
testpaths = [
"tests",
]
spec_header_format = "{test_case}"
[tool.pylint.MASTER]
ignore = "tests"
[tool.pylint.BASIC]
argument-naming-style = 'snake_case'
attr-naming-style = 'snake_case'
class-naming-style = 'PascalCase'
const-naming-style = 'UPPER_CASE'
function-naming-style = 'snake_case'
method-naming-style = 'snake_case'
module-naming-style = 'snake_case'
variable-naming-style = 'snake_case'
[tool.pylint.DESIGN]
max-statements = 50
[tool.pylint."MESSAGES CONTROL"]
disable = '''
logging-fstring-interpolation,
fixme,
import-error,
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
too-many-instance-attributes,
too-few-public-methods,
'''
[tool.pylint.REFACTORING]
max-nested-blocks = 3
[tool.robotidy]
transform = [
"InlineIf",
"ReplaceBreakContinue",
"ReplaceReturns",
"SplitTooLongLine",
"ReplaceRunKeywordIf",
"NormalizeSettingName",
"NormalizeSectionHeaderName",
"NormalizeNewLines",
"AlignVariablesSection",
"AlignSettingsSection",
"OrderSettingsSection",
"OrderSettings",
"NormalizeAssignments",
"RemoveEmptySettings",
"MergeAndOrderSections",
"DiscardEmptySections",
"NormalizeSeparators",
"AddMissingEnd",
"AlignTemplatedTestCases",
"RenameTestCases",
"RenameKeywords"
]
configure = [
"RenameTestCases:enabled=True:capitalize_each_word=True",
"AlignKeywordsSection:enabled=True:alignment_type=auto"
]