Add ruff static analysis and a Gitea Actions release workflow
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>
This commit is contained in:
2026-08-16 14:39:41 +02:00
co-authored by Claude Sonnet 5
parent 71921b5600
commit efc09e1a71
12 changed files with 104 additions and 59 deletions
+11 -1
View File
@@ -17,7 +17,7 @@ dependencies = [
]
[project.optional-dependencies]
dev = ["pytest>=7", "pytest-cov"]
dev = ["pytest>=7", "pytest-cov", "ruff>=0.6"]
[project.scripts]
openrgb-hue = "openrgb_hue.cli:app"
@@ -30,3 +30,13 @@ 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
]