-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (137 loc) · 3.94 KB
/
pyproject.toml
File metadata and controls
149 lines (137 loc) · 3.94 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "toolium"
dynamic = ["version", "dependencies", "optional-dependencies"]
authors = [
{name = "Rubén González Alonso", email = "ruben.gonzalezalonso@telefonica.com"},
]
description = "Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project"
readme = "README.rst"
license = {text = "Apache 2.0"}
keywords = [
"selenium",
"appium",
"webdriver",
"web_automation",
"mobile_automation",
"page_object",
"visual_testing",
"ai",
"bdd",
"behave",
"pytest"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Acceptance",
"Topic :: Software Development :: Testing :: BDD",
"Topic :: Text Processing :: Linguistic",
]
requires-python = ">=3.10"
[project.urls]
Homepage = "https://github.com/telefonica/toolium"
Repository = "https://github.com/telefonica/toolium"
Documentation = "http://toolium.readthedocs.org/en/latest"
Changelog = "http://toolium.readthedocs.org/en/latest/changelog.html"
"Bug Tracker" = "https://github.com/telefonica/toolium/issues"
[tool.setuptools]
packages = [
"toolium",
"toolium.pageobjects",
"toolium.pageelements",
"toolium.pageelements.playwright",
"toolium.behave",
"toolium.utils",
"toolium.utils.ai_utils"
]
[tool.setuptools.package-data]
"toolium" = [
"resources/VisualTestsTemplate.html",
"resources/VisualTests.js",
"resources/VisualTests.css"
]
[tool.setuptools.dynamic]
version = {file = "VERSION"}
dependencies = {file = ["requirements.txt"]}
optional-dependencies.playwright = {file = ["requirements_playwright.txt"]}
optional-dependencies.ai = {file = ["requirements_ai.txt"]}
optional-dependencies.dev = {file = ["requirements_dev.txt"]}
[tool.pytest.ini_options]
testpaths = ["toolium/test"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["toolium"]
omit = [
"*/test/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == '__main__':",
]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
# Rules to enforce
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"N", # pep8-naming
"A", # flake8-builtins
"B", # flake8-bugbear
"G", # flake8-logging-format
"ARG", # flake8-unused-arguments
"COM", # flake8-commas
"C4", # flake8-comprehensions
"PT", # flake8-pytest-style
"T20", # flake8-print
"RUF", # Ruff-specific rules
]
# Rules to ignore
ignore = [
"COM812", # flake8-missing-trailing-comas (conflict with ruff format)
]
[tool.ruff.lint.isort]
combine-as-imports = true
split-on-trailing-comma = true
known-first-party = ["acceptance"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder"
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"