Skip to content

feat: docs restructure, show_versions, pyright CI, remove 1e-10 zero guards#7

Merged
quantbai merged 3 commits intodevfrom
feature/docs-and-zero-guard-removal
Mar 24, 2026
Merged

feat: docs restructure, show_versions, pyright CI, remove 1e-10 zero guards#7
quantbai merged 3 commits intodevfrom
feature/docs-and-zero-guard-removal

Conversation

@quantbai
Copy link
Copy Markdown
Owner

Summary

  • Add show_versions() for bug report diagnostics
  • Add community templates (issue, PR, CODE_OF_CONDUCT, SECURITY)
  • Restructure docs: CLAUDE.md (AI memo), CONTRIBUTING.md (human guide)
  • Add pyright static type checking to CI pipeline
  • [NUMERICAL] Remove arbitrary 1e-10 zero guards (23 instances)
  • Replace interval-based panel skeleton with union-based skeleton

Change Type

  • Bug fix (corrects incorrect behavior)
  • New feature (new operator or functionality)
  • Refactor (no behavior change)
  • Numerical change (alters factor computation results) [BREAKING]

Numerical Impact

Category Before After
divide, inverse abs(denom) < 1e-10 → null No guard. Inf → null via Factor
zscore, scale, etc. < 1e-10 → 0.0 == 0 → 0.0 (exact zero)
ts_regression, etc. < 1e-10 → 0.0 == 0 → 0.0 (exact zero)

Eliminates silent data loss from legitimate small values.

Testing

  • Added or updated tests
  • All tests pass (pytest tests/ -v) -- 141 passed
  • Lint passes (ruff check elvers/)
  • Type check passes (pyright elvers/) -- 0 errors

quantbai and others added 3 commits March 25, 2026 03:40
- Fix 4 pyright errors in factor.py (hash annotation, eq/ne override, dead code)
- Add pyright to CI pipeline and dev dependencies
- Remove _resolve_other (dead code after _binary refactor)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- PR template: add pyright check item
- README Development section: add pyright command
- CONTRIBUTING: add pyright to verify, dev cycle, and pre-PR checklist
- CHANGELOG [Unreleased]: full list of additions and changes since 0.3.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@quantbai quantbai merged commit dc87e8f into dev Mar 24, 2026
4 checks passed
@quantbai quantbai deleted the feature/docs-and-zero-guard-removal branch March 24, 2026 20:04
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.

1 participant