Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (150 loc) · 3.63 KB
/
Copy pathpyproject.toml
File metadata and controls
178 lines (150 loc) · 3.63 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
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
[project]
name = "inputtino-python"
version = "0.1.0"
description = "Python bindings for the inputtino library, providing virtual input device control for Linux."
license-files = ["LICENSE"]
readme = "README.md"
authors = [
{ name = "Geson-anko", email = "59220704+Geson-anko@users.noreply.github.com" }
]
requires-python = ">=3.10"
dependencies = [
"typing-extensions>=4.12.2",
]
keywords = [
"control",
"gui",
"automation",
"keyboard",
"mouse",
"joypad",
"pentablet",
"touchscreen",
"linux",
"uinput",
"trackpad",
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Environment :: X11 Applications",
"Natural Language :: English",
"Natural Language :: Japanese",
"Intended Audience :: Developers",
"Typing :: Typed",
"Programming Language :: C++",
"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",
]
[project.urls]
Repository = "https://github.com/games-on-whales/inputtino"
Issues = "https://github.com/games-on-whales/inputtino/issues"
[tool.uv]
python-preference = "only-managed"
[tool.scikit-build]
wheel.packages = ["src/inputtino"]
minimum-version = "build-system.requires"
build-dir = "build/{wheel_tag}"
[build-system]
requires = ["scikit-build-core>=0.10", "pybind11"]
build-backend = "scikit_build_core.build"
[dependency-groups]
dev = [
"docformatter>=1.7.5",
"pybind11>=2.13.6",
"pybind11-stubgen>=2.5.1",
"pyright>=1.1.393",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pyupgrade>=3.19.1",
"ruff>=0.9.5",
]
[tool.pyright]
pythonVersion = "3.10"
exclude = [
"**/node_modules",
"**/__pycache__",
]
strict = ["./src/"]
reportMissingModuleSource = "none"
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--durations=0",
"--strict-markers",
"--doctest-modules",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
log_cli = "True"
minversion = "6.0"
testpaths = "tests/"
markers = [
"practical: tests that interact with actual endpoints",
]
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.10
target-version = "py310"
include = ["*.py"]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".ipynb_checkpoints",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"build",
"dist",
"node_modules",
".venv",
]
# Linter ignore codes
[tool.ruff.lint]
select = [
"E",
"F",
"W",
"I",
]
ignore = [
"E203", # Whitespace before ':' (E203)
"E402", # Module level import not at top of file.
"E501", # Line too long (82 > 79 characters) (E501)
"F811", # Redefinition of unused name from line n (F811)
"E741", # Do not define classes named 'I', 'O', or 'l' (E742)
"E266", # too many leading '#' for block comment (E266)
"F401", # Module imported but unused,
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.coverage.run]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == __main__:",
"pass",
"raise ImportError",
]