-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
58 lines (48 loc) · 1.31 KB
/
Copy pathpyproject.toml
File metadata and controls
58 lines (48 loc) · 1.31 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
[project]
name = "razer-effect"
version = "0.1.0"
description = "Per-key random RGB effects with smooth fades for Razer keyboards via OpenRazer"
requires-python = ">=3.10"
license = "MIT"
# Note: python3-openrazer, gi (GTK4), and python3-dbus (UPower battery polling)
# are system packages (not on PyPI). They must be installed via your distro's
# package manager before using this tool.
dependencies = ["numpy"]
[dependency-groups]
dev = ["ruff", "ty"]
[project.scripts]
razer-effect = "razer_effect.main:main"
razer-effect-gui = "razer_effect.gui:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/razer_effect"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific
]
[tool.ruff.lint.isort]
known-first-party = ["razer_effect"]
[tool.ruff.format]
quote-style = "double"
[tool.ty.environment]
python-version = "3.10"
extra-paths = [
"/usr/lib/python3.14/site-packages",
"/usr/lib64/python3.14/site-packages",
]
[tool.ty.rules]
all = "error"