Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

ci: run checks on inkbox + regen lockfile + disable upstream PyPI publish - #16

Merged
dimavrem22 merged 2 commits into
inkboxfrom
ci/branches-lockfile-pypi-hygiene
May 15, 2026
Merged

dimavrem22 merged 2 commits into
inkboxfrom
ci/branches-lockfile-pypi-hygiene

Conversation

@on-call-hermes-agent

Copy link
Copy Markdown

What does this PR do?

Three pure-config hygiene fixes from external review. No runtime code changes.

  1. Add inkbox to branch filter on 6 check workflows (tests, lint, osv-scanner, uv-lockfile-check, contributor-check, nix). Default branch is inkbox but every CI workflow was scoped to [main] only, so PRs to the active branch silently skip CI. Publishing workflows (deploy-site, docker-publish) left alone — same namespace risk as item 3.
  2. Regenerate uv.lock so it includes inkbox v0.4.0 + transitives already declared in pyproject.toml. uv lock --check was failing.
  3. Rename upload_to_pypi.yml.disabled. Fork still publishes package name hermes-agent, matching upstream's PyPI package — an accidental tag push would bounce on auth or try to overwrite upstream. Rename preserves the file for trivial re-enable post-rename.

How to Test

…yPI publish

Three small hygiene changes addressing review findings:

1. Add `inkbox` to branches for check workflows (tests, lint, osv-scanner,
   uv-lockfile-check, contributor-check, nix). Default branch is `inkbox`
   but every CI workflow was scoped to `[main]` only, so PRs and pushes
   to inkbox have been silently skipping CI. Publishing workflows
   (deploy-site, docker-publish) intentionally left scoped to main —
   same namespace-collision risk that motivated #3 below.

2. Regenerate uv.lock so it reflects the inkbox/aiohttp deps already
   declared in pyproject.toml. `uv lock --check` was failing on inkbox;
   adds inkbox v0.4.0 + argon2-cffi to the lockfile.

3. Rename upload_to_pypi.yml -> upload_to_pypi.yml.disabled. The fork
   still declares package name `hermes-agent` in pyproject.toml, which
   matches NousResearch's upstream PyPI package. A CalVer tag push
   would either bounce on auth or, worse, attempt to publish over the
   upstream package. Disabling via rename preserves the workflow
   verbatim for trivial re-enable once the package is renamed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown

🔎 Lint report: ci/branches-lockfile-pypi-hygiene vs origin/inkbox

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8359 on HEAD, 8359 on base (➖ 0)

🆕 New issues (3):

Rule Count
invalid-argument-type 3
First entries
run_agent.py:7535: [invalid-argument-type] invalid-argument-type: Argument to function `build_anthropic_client` is incorrect: Expected `str`, found `str | dict[Unknown, Unknown] | Any | ... omitted 3 union elements`
run_agent.py:13818: [invalid-argument-type] invalid-argument-type: Argument to function `_is_oauth_token` is incorrect: Expected `str`, found `str | dict[Unknown, Unknown] | Any | ... omitted 3 union elements`
run_agent.py:13821: [invalid-argument-type] invalid-argument-type: Argument to function `len` is incorrect: Expected `Sized`, found `(str & ~AlwaysFalsy) | (dict[Unknown, Unknown] & ~AlwaysFalsy) | (Any & ~AlwaysFalsy) | ... omitted 3 union elements`

✅ Fixed issues (3):

Rule Count
invalid-argument-type 3
First entries
run_agent.py:13818: [invalid-argument-type] invalid-argument-type: Argument to function `_is_oauth_token` is incorrect: Expected `str`, found `str | dict[Unknown | str, Unknown | str | dict[str, str]] | Any | ... omitted 3 union elements`
run_agent.py:13821: [invalid-argument-type] invalid-argument-type: Argument to function `len` is incorrect: Expected `Sized`, found `(str & ~AlwaysFalsy) | (dict[Unknown | str, Unknown | str | dict[str, str]] & ~AlwaysFalsy) | (Any & ~AlwaysFalsy) | ... omitted 3 union elements`
run_agent.py:7535: [invalid-argument-type] invalid-argument-type: Argument to function `build_anthropic_client` is incorrect: Expected `str`, found `str | dict[Unknown | str, Unknown | str | dict[str, str]] | Any | ... omitted 3 union elements`

Unchanged: 4363 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

check-attribution flagged dima@vectorly.app and dimavrem22@gmail.com on
this PR because the workflow had never run on the inkbox branch before.
Map both to the github handle so the release-notes generator can credit
inkbox-fork commits correctly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dimavrem22
dimavrem22 merged commit 00ab8d9 into inkbox May 15, 2026
11 of 13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant