forked from d-biehl/robot_uv_libtest
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (81 loc) · 2.16 KB
/
pyproject.toml
File metadata and controls
92 lines (81 loc) · 2.16 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
[project]
name = "robotframework-dosomething"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "Your name", email = "your@email.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Framework :: Robot Framework :: Library"
]
requires-python = ">=3.9"
dependencies = [
"robotframework>=7.2.2",
]
# https://docs.astral.sh/ruff/configuration/
[tool.ruff.lint]
extend-select = ["I"]
# https://github.com/jendrikseipp/vulture?tab=readme-ov-file#configuration
[tool.vulture]
min_confidence = 100
paths = ["src/**", "utests"]
exclude = [".venv", ".tox"]
# https://deptry.com/usage/#configuration
[tool.deptry.per_rule_ignores]
DEP002 = ["robotframework"]
# https://tox.wiki/en/latest/config.html#pyproject-toml-ini
[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = true
envlist = py39, py310, py311, py312, py313
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
passenv = PYTHON_VERSION
allowlist_externals = uv
commands =
uv sync --python {envpython}
uv run robotcode robot .
uv run pytest .
"""
# https://docs.pytest.org/en/7.1.x/reference/reference.html#ini-options-ref
[tool.pytest.ini_options]
testpaths = ["utests"]
# https://robotcode.io/03_reference/config
[tool.robot]
paths = ["atests"]
[tool.robot.variables]
#MY_VAR = "Hello, World!"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/DoSomething"]
[dependency-groups]
dev = [
"deptry>=0.23.0",
"mypy>=1.15.0",
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"robotcode[all]>=1.2.0",
"robotframework-tidy>=4.16.0",
"ruff>=0.11.7",
"tox-uv>=1.25.0",
"vulture>=2.14",
]