-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
105 lines (83 loc) · 2.44 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
[project]
name = "headless-kivy"
dynamic = ["version"]
description = "Headless renderer for Kivy framework"
license = { text = "Apache-2.0" }
authors = [{ name = "Sassan Haradji", email = "[email protected]" }]
maintainers = [{ name = "Sassan Haradji", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.11"
keywords = ['kivy', 'headless', 'display', 'pytest', 'test']
dependencies = [
"numpy >= 1.24.2, < 2.0.0",
"kivy >= 2.2.1",
"python-strtobool >= 1.0.0",
]
[project.optional-dependencies]
test = ["pypng >= 0.20220715.0"]
[tool.uv]
dev-dependencies = [
"poethepoet >= 0.29.0",
"pyright >= 1.1.386",
"ruff >= 0.7.1",
"pytest >= 8.3.3",
]
[project.urls]
homepage = 'https://github.com/sassanh/headless-kivy/'
repository = 'https://github.com/sassanh/headless-kivy/'
documentation = 'https://github.com/sassanh/headless-kivy/'
changelog = 'https://github.com/sassanh/headless-kivy/blob/main/CHANGELOG.md'
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "headless_kivy/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "setup_scm_schemes:local_scheme"
[tool.hatch.build]
packages = ["headless_kivy", "headless_kivy_pytest"]
[tool.hatch.build.targets.sdist]
packages = ["headless_kivy", "headless_kivy_pytest"]
[project.scripts]
demo = "demo:main"
todo_demo = "todo_demo:main"
[tool.poe.tasks]
lint = "ruff check . --unsafe-fixes"
typecheck = "pyright -p pyproject.toml ."
sanity = ["typecheck", "lint"]
[tool.poe.tasks.deploy-to-device]
cmd = 'scripts/deploy.sh'
[tool.ruff]
target-version = 'py311'
[tool.ruff.lint]
select = ['ALL']
ignore = ['INP001', 'PLR0911', 'D203', 'D213']
fixable = ['ALL']
unfixable = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "PLR0913", "PLR0915"]
"headless_kivy_pytest/*" = ["S101", "PLR0913", "PLR0915"]
[tool.ruff.format]
quote-style = 'single'
[tool.isort]
profile = "black"
[tool.pyright]
exclude = ['typings', '.venv']
filterwarnings = 'error'
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:"]
[tool.coverage.run]
source = ['headless_kivy', 'headless_kivy_pytest']
omit = [
'headless_kivy_pytest/plugin.py',
'headless_kivy/_version.py',
"setup_scm_schemes.py",
]
[project.entry-points.pytest11]
headless_kivy = "headless_kivy_pytest.plugin"