Add ruff static analysis and a Gitea Actions release workflow
Release / release (push) Successful in 52s
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:
+11
-1
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user