Release / release (push) Successful in 52s
Adds ruff (lint + format check) as a dev dependency and gate, applies its fixes across the codebase (modernized typing, safer zip usage, line length), and adds a Gitea Actions workflow that lints, tests, builds, and publishes to the Gitea PyPI registry on v*.*.* tag pushes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
43 lines
981 B
TOML
43 lines
981 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "openrgb-hue"
|
|
dynamic = ["version"]
|
|
description = "Apply Philips Hue scene gradients to OpenRGB-controlled lights, with multiple mapping and animation modes."
|
|
readme = "README.md"
|
|
license = { text = "MIT" }
|
|
requires-python = ">=3.10"
|
|
authors = [{ name = "Sebastian Krüger" }]
|
|
dependencies = [
|
|
"openrgb-python",
|
|
"typer>=0.9",
|
|
"rich>=13",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=7", "pytest-cov", "ruff>=0.6"]
|
|
|
|
[project.scripts]
|
|
openrgb-hue = "openrgb_hue.cli:app"
|
|
|
|
[tool.hatch.version]
|
|
path = "src/openrgb_hue/__init__.py"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/openrgb_hue"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
ignore = [
|
|
"B008", # typer.Option(...)/typer.Argument(...) as a parameter default is the idiomatic Typer pattern
|
|
]
|