-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (81 loc) · 2.61 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (81 loc) · 2.61 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
[project]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
]
description = "Patternfly4 widget library for Widgetastic."
dynamic = ["version"]
keywords = ["widgetastic", "patternfly", "patternfly4"]
license = {file = "LICENSE"}
maintainers = [
{name = "Nikhil Dhandre", email = "ndhandre@redhat.com"},
{name = "Egor Shamardin", email = "eshamard@redhat.com"},
{name = "Mike Shriver", email = "mshriver@redhat.com"},
]
name = "widgetastic.patternfly4"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"widgetastic.core>=1.2.1,<2.0.0",
]
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-xdist",
"codecov",
"selenium",
]
doc = ["sphinx"]
[project.urls]
repository = "https://github.com/RedHatQE/widgetastic.patternfly4"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[tool.hatch.build.targets.wheel]
packages = ["src/widgetastic_patternfly4"]
strict-naming = false
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.default]
features = ["dev"]
[tool.hatch.envs.default.env-vars]
BROWSER = "firefox"
[tool.hatch.envs.default.scripts]
test = "pytest {args:testing}"
test-parallel = "pytest -n auto {args:testing}"
test-cov = "pytest --no-cov-on-fail --cov=widgetastic_patternfly4 --cov-append testing {args}"
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
browser = ["chrome", "firefox"]
[tool.hatch.envs.test.overrides]
matrix.browser.env-vars = "BROWSER"
[tool.hatch.envs.coverage]
detached = true
dependencies = ["coverage[toml]"]
[tool.hatch.envs.coverage.scripts]
combine = "coverage combine {args}"
report = "coverage report {args}"
xml = "coverage xml {args}"
[tool.hatch.envs.lint]
dependencies = ["pre-commit"]
[tool.hatch.envs.lint.scripts]
check = "pre-commit run --all-files"
[tool.pytest.ini_options]
testpaths = ["testing"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["F", "I", "PL", "UP"]
# PLR0913/PLR0917: widgetastic widgets conventionally take several positional
# constructor args (parent, locator, ...); PLW1641: pre-existing __eq__-without-
# __hash__ classes kept as-is to avoid changing equality/hashing semantics.
extend-ignore = ["PLR2004", "PLE0643", "PLR0913", "PLR0917", "PLW1641"]