-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
247 lines (215 loc) · 5.8 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
[tool.poetry]
name = "flaui-uiautomation-wrapper"
version = "0.0.8a24"
description = "Tool to perform UI Automation on Windows desktop applications using an underlying FlaUI wrapper."
authors = [
"Amruth VVKP <amruthvvkp@gmail.com>",
"Varshith VVS <svvarsham@gmail.com>",
"Tejaswani Sathish Kumar <tejaswani12.92@gmail.com",
]
license = "LGPL-3.0-or-later"
readme = "README.md"
keywords = [
"testing",
"ui",
"ui-automation",
"automation",
"windows",
"windows automation",
"windows testing",
"desktop automation",
"flaui",
"qa",
]
packages = [{ include = "flaui" }]
include = [{ path = "flaui/bin/*.dll" }]
exclude = ["tests", "docs"]
repository = "https://github.com/amruthvvkp/flaui-uiautomation-wrapper"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Intended Audience :: Developers",
]
[tool.poetry-git-version-plugin]
make_alpha_version = true
alpha_version_format = '{version}a{distance}+{commit_hash}'
version_format = '{version}'
[tool.poetry.dependencies]
python = ">=3.7,<3.12"
loguru = "^0.6.0"
pillow = "^9.3.0"
arrow = "^1.2.3"
pythonnet = "^3.0.1"
pydantic = "^2.0.0"
pydantic-settings = "^2.0.0"
pydantic-extra-types = "^2.0.0"
[tool.poetry.group.dev.dependencies]
mypy = "^0.991"
jupyter = "^1.0.0"
isort = "^5.10.1"
pre-commit = { version = "^3.3.3", python = ">=3.8" }
interrogate = "^1.5.0"
ruff = "^0.0.288"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.unit_test.dependencies]
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
[tool.poetry.group.unit_test]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.1.17"
mkdocs-markdownextradata-plugin = "^0.2.5"
mkdocs-jupyter = "^0.24.1"
[tool.poetry.group.docs]
optional = true
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools", "wheel"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q -p no:warnings --junitxml=test-results.xml"
testpaths = ["tests/unit_tests/"]
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
exclude = ["docs", "build"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 2
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
[tool.isort]
profile = "black"
known_third_party = ["pydantic"]
skip = [".gitignore", ".dockerignore"]
extend_skip = [".md", ".json"]
line_length = 120
skip_gitignore = true
length_sort_straight = true
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
ensure_newline_before_comments = true
use_parentheses = true
py_version = 310
[tool.black]
# https://github.com/psf/black
line-length = 120
target_version = ['py310']
exclude = '''
(
/(
\.git
| \.mypy_cache
| \.pytest_cache
| htmlcov
| venv
| .venv
)/
)
'''
[tool.mypy]
strict = false
plugins = ["pydantic.mypy"]
follow_imports = "skip"
warn_redundant_casts = true
swarn_unused_ignores = true
no_implicit_reexport = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = false
warn_required_dynamic_aliases = true
warn_untyped_fields = false
[tool.flake8]
max-line-length = 120
extend-ignore = ["E203"]
max-complexity = 10
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B904", # Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling
"B008", # Do not perform function call {name} in argument defaults
"B006", # Do not use mutable data structures for argument defaults
"C901", # too complex
"E402", # Module level import not at top of file
]
# Group violations by containing file.
respect-gitignore = true
src = ["flaui"]
# Same as Black.
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
fix = true
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.isort]
order-by-type = true
combine-as-imports = true
force-sort-within-sections = true
lines-after-imports = 1
force-single-line = false
split-on-trailing-comma = false
known-third-party = ["pydantic"]
[tool.coverage.run]
disable_warnings = ["no-data-collected"]
branch = true
source = ["flaui"]
command_line = "-m pytest . -v"
relative_files = true
[tool.coverage.html]
directory = "htmlcov"
skip_empty = true
title = "FlaUI Test Coverage Report"
[tool.coverage.xml]
output = "coverage.xml"
[tool.coverage.lcov]
output = "coverage.lcov"
[tool.coverage.report]
exclude_also = [
"raise RuntimeError",
"if waiter_config is None:",
"except AssertionError",
"except ClientError",
"except WaiterError",
]