-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (86 loc) · 1.8 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "vrcar"
dynamic = ["version"]
description = "VR controlled Raspberry Pi car"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
{ name = "Simon Sawicki", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = []
[project.optional-dependencies]
pygame = [
"pygame",
]
vr = [
"pyopenxr",
"pyOpenGL",
# Does not work?
# "PyOpenGL-accelerate",
"Pillow",
]
[project.scripts]
vrcar = "vrcar.__main__:main"
[project.urls]
Documentation = "https://github.com/Grub4K/vrcar"
Issues = "https://github.com/Grub4K/vrcar/issues"
Source = "https://github.com/Grub4K/vrcar"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "vrcar/_version.py"
[tool.hatch.envs.default]
path = ".venv"
installer = "uv"
features = ["vr", "pygame"]
dependencies = [
"pre-commit",
]
[tool.hatch.envs.default.scripts]
init = "pre-commit install -c pre-commit.yml"
deinit = "pre-commit uninstall"
vrcar = "python -m vrcar {args}"
[tool.hatch.envs.hatch-static-analysis]
dependencies = ["ruff==0.4.*"]
config-path = "pyproject.toml"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"C4",
"E",
"F",
"I",
"PLC",
"PLE",
"PLW",
"PYI",
"RET",
"RUF",
"SIM",
"TD",
"TID",
"W",
]
ignore = [
"TD003",
"E402",
"PLR09",
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"