Skip to content

Add nox-based CI with relaxed mypy and Black lint sessions#1

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-ci-testing-nox
Draft

Add nox-based CI with relaxed mypy and Black lint sessions#1
Copilot wants to merge 2 commits intomainfrom
copilot/add-ci-testing-nox

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 15, 2026

Summary

Adds CI testing for the scripts using nox with relaxed (non-strict) mypy type-checking, as requested.

Changes

New files

  • noxfile.py — Two nox sessions:
    • mypy — type-checks all scripts and noxfile in relaxed mode (no --strict, several noisy error codes disabled)
    • lint — verifies formatting with Black
  • .github/workflows/ci.yml — GitHub Actions workflow that runs both sessions on push to main and on PRs

Modified files

  • pyproject.toml — Added [tool.mypy] section with relaxed configuration: ignore_missing_imports = true, selected error codes disabled to avoid false positives from third-party stubs (xml.etree, etc.)
  • scripts/zubax_forum_export.py — Fixed a minor type annotation issue (wrapped list from str.split() in tuple() for dict() constructor compatibility)
  • README.md — Added "CI & Testing" section documenting the nox sessions and how to run them locally

Testing

Both sessions pass locally:

nox > * mypy: success
nox > * lint: success

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.

2 participants