Completes issue #250 by adding automated code quality checks to CI. New 'lint' job runs before tests with: - Ruff linter (ruff check) - catches code smells and errors - Ruff formatter (ruff format --check) - ensures consistent formatting - Mypy type checker - validates type annotations Configuration: - Runs on ubuntu-latest with Python 3.12 - Uses existing ruff/mypy config from pyproject.toml (PR #251) - Mypy continues on error (gradual typing adoption) - Both lint and test jobs must pass for PR approval Benefits: - Enforces code quality standards automatically - Catches formatting issues before code review - Prevents regressions in code style - Complements existing test suite Related: - Issue #250 (request for linters) - PR #251 (added ruff/mypy config and formatted codebase) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
3.5 KiB
3.5 KiB