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:
@@ -13,8 +13,8 @@ from openrgb_hue.animation import (
|
||||
build_animation,
|
||||
run_animation,
|
||||
)
|
||||
from openrgb_hue.gradient import Gradient
|
||||
from openrgb_hue.color import Color
|
||||
from openrgb_hue.gradient import Gradient
|
||||
from openrgb_hue.mapping import SequenceMapping, base_positions
|
||||
from openrgb_hue.targets import synthetic_targets
|
||||
|
||||
|
||||
+1
-3
@@ -47,9 +47,7 @@ def test_apply_dry_run_matrix_radial():
|
||||
|
||||
@pytest.mark.parametrize("mode", ["static", "scroll", "pingpong", "pulse", "wave"])
|
||||
def test_animate_dry_run_across_animation_modes(mode):
|
||||
result = runner.invoke(
|
||||
app, ["animate", "Tropical twilight", "--dry-run", "--mode", mode, "--dry-run-frames", "3"]
|
||||
)
|
||||
result = runner.invoke(app, ["animate", "Tropical twilight", "--dry-run", "--mode", mode, "--dry-run-frames", "3"])
|
||||
assert result.exit_code == 0, result.output
|
||||
assert "t=0.00s" in result.output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user