Skip to content

Conversation

@joaquinbejar
Copy link
Owner

Summary

Update dependencies to their latest versions and leverage new features from positive 0.3.

Dependency Updates

Dependency Previous New
zip 6.0 7.0
plotly 0.13 0.14
positive 0.2.1 0.3

Changes

Cargo.toml

  • Updated workspace dependency versions

src/model/utils.rs

  • Replace pos_or_panic!(30.0) with Positive::THIRTY
  • Replace pos_or_panic!(5.0) with Positive::FIVE
  • Replace pos_or_panic!(0.01) with Positive::new(0.01).expect()
  • Replace pos_or_panic!(0.2) with Positive::new(0.2).expect()
  • Update mean_and_std() to use Positive::new().unwrap_or()
  • Remove unused pos_or_panic import from production code
  • Add pos_or_panic import to test modules where needed

Testing

  • cargo build - Compiles successfully
  • cargo test --lib - All 3631 tests pass
  • make lint-fix - No warnings
  • make pre-push - All checks pass

Related Issue

Closes #257

- Update zip from 6.0 to 7.0
- Update plotly from 0.13 to 0.14
- Update positive from 0.2.1 to 0.3

Leverage new Positive constants and methods:
- Replace pos_or_panic!(30.0) with Positive::THIRTY
- Replace pos_or_panic!(5.0) with Positive::FIVE
- Replace pos_or_panic!(0.01) with Positive::new(0.01).expect()
- Replace pos_or_panic!(0.2) with Positive::new(0.2).expect()
- Update mean_and_std() to use Positive::new().unwrap_or()
- Remove unused pos_or_panic import from production code
- Add pos_or_panic import to test modules where needed

Closes #257
@joaquinbejar joaquinbejar added enhancement New feature or request refactor Code refactoring without changing behavior priority-medium Important but not blocking labels Jan 11, 2026
@codecov
Copy link

codecov bot commented Jan 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/model/utils.rs 91.17% <100.00%> (+0.26%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…-zip-plotly-positive

# Conflicts:
#	src/model/utils.rs
- Update test modules in `utils.rs` to include `pos_or_panic` from `positive` crate.
- Ensure consistency across test imports.
- Create `intrinsic_value_chart.html` with Plotly visualization of intrinsic value.
- Include corresponding `intrinsic_value_chart.png` for static representation.
@joaquinbejar joaquinbejar merged commit e60b780 into main Jan 11, 2026
12 checks passed
@joaquinbejar joaquinbejar deleted the 257-dependency-update-zip-plotly-positive branch January 11, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority-medium Important but not blocking refactor Code refactoring without changing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(deps): Update dependencies - zip 7.0, plotly 0.14, positive 0.3.0

2 participants