Skip to content

Add Python scaffold for the action - #52

Open
ludeeus wants to merge 2 commits into
mainfrom
claude/python-scaffold
Open

ludeeus wants to merge 2 commits into
mainfrom
claude/python-scaffold

Conversation

@ludeeus

@ludeeus ludeeus commented Oct 18, 2026

Copy link
Copy Markdown
Member

First step of moving the validation logic from hacs/integration into this repository as a standalone Python action.

  • uv project on Python 3.14 with an exactly pinned, locked dev environment
  • ruff configuration from hacs/integration, plus pytest
  • CI workflow runs ruff check, ruff format check and pytest
  • Dependabot now also updates uv dependencies

action.yml is unchanged and still runs the Docker image built by hacs/integration, so nothing changes for users.

Set up the tooling for moving the validation logic into this
repository: uv with a locked, exactly pinned dev environment on
Python 3.14, the ruff configuration from hacs/integration, pytest,
a CI workflow and uv updates through Dependabot. The entry point is
a placeholder, and action.yml still runs the Docker image built by
hacs/integration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uy8sjiJDFtdc39e6CDBUN4
Select all rules and ignore only those that conflict with the
formatter or with other docstring rules, plus copyright headers.
Tests may use plain assert statements for pytest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uy8sjiJDFtdc39e6CDBUN4
Copilot AI balanced review requested due to automatic review settings October 18, 2026 18:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The scaffold is narrowly scoped, leaves the existing action runtime unchanged, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Adds the Python foundation for moving HACS validation into this repository, without changing the existing Docker-based action.

Changes:

  • Introduces a Python 3.14 uv project with pinned dependencies.
  • Adds a placeholder entry point and smoke test.
  • Configures linting, formatting, tests, and dependency updates.
File Description
uv.lock Locks development dependencies.
tests/​test_main.py Tests successful placeholder execution.
tests/​__init__.py Initializes the test package.
pyproject.toml Configures dependencies, pytest, and Ruff.
hacs_action/​__main__.py Adds the placeholder entry point.
hacs_action/​__init__.py Initializes the action package.
.python-version Selects Python 3.14.
.gitignore Excludes Python environment artifacts.
.github/​workflows/​ci.yml Runs lint, formatting, and test checks.
.github/​dependabot.yml Enables uv dependency updates.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants