Skip to content

Conversation

@dguido
Copy link
Member

@dguido dguido commented Jan 26, 2026

Summary

  • Add pytest test suite with 74 tests covering unit, integration, and E2E scenarios
  • Replace black/pylint CI workflows with ruff-based linting
  • Update pip-audit and publish workflows for uv compatibility
  • Add pre-commit configuration and py.typed marker

Test plan

  • All 74 tests pass locally (make test)
  • Linting passes (make lint)
  • CI workflow syntax validated with actionlint
  • Verify CI runs successfully on this PR

🤖 Generated with Claude Code

- Add pytest with 74 tests covering unit, integration, and E2E scenarios
- Test file_paths, ranges, and analysis_structures utilities
- Test SlitherDiagnostics with mocked server
- Test LSP protocol types and server capabilities
- Add test fixtures (Solidity contracts, detector JSON)
- Configure pytest-asyncio for async test support
- Add test.yaml CI workflow with pinned action SHAs
- Replace black/pylint workflows with ruff-based lint.yaml
- Update pip-audit.yaml and publish.yaml for uv
- Add pre-commit configuration
- Add py.typed marker for type checking
- Add __init__.py files for proper package structure
- Fix TYPE_CHECKING annotation in slither_diagnostics.py
- Format codebase with ruff

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add explicit minimal permissions to all workflows to follow
security best practices (fixes zizmor excessive-permissions audit).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@dguido dguido merged commit 78ba80b into main Jan 26, 2026
6 checks passed
@dguido dguido deleted the add-test-suite branch January 26, 2026 18:29
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