Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 11 Aug 03:20
· 26 commits to main since this release

EulerProblems v0.9.0

A modular release of EulerProblems, featuring a major internal refactor, improved performance reporting, expanded Easter eggs, and automated CI/release tooling.

Highlights

  • Major project refactor
    • Split the original monolithic EulerProblems.py into a modular euler_problems package.
    • Separated problem implementations, utilities, exceptions, CLI functionality, and Easter eggs.
  • Performance statistics
    • Per-problem execution timing.
    • Total runtime and average runtime reporting.
    • Top 3 slowest problems displayed after running all problems.
  • Easter egg system
    • Randomized Easter eggs with a 1% activation chance.
    • --no-easter-eggs option for clean output.
    • Forced Easter Egg mode for testing.
    • Easter Egg navigation through the anime argument.
  • Improved error handling
    • Custom EulerProblemError exception hierarchy.
    • Problem-specific execution errors.
    • More informative exception messages.
    • Special handling for division-by-zero errors.
  • CLI improvements
    • Modular help text generated from solver metadata.
    • Problem listing and version information.
    • Improved command-line error reporting.
  • Python compatibility
    • Improved compatibility with older Python 3 versions.
    • Dedicated CI testing across supported Python versions.

Testing & CI

  • Added a smoke test that executes implemented problems and reports failures.
  • Added GitHub Actions workflows for:
    • Standard CI
    • Python compatibility testing
    • Automated releases
  • Slow-running problems can be excluded from CI smoke tests where appropriate.

Dependencies

colorama==0.4.6
halo==0.0.31

Known Quirks

  • Some Project Euler problems are significantly slower than others.
  • Problem 60 remains the current performance menace.
  • Easter eggs may produce unexpected output.
  • Some Easter eggs are still works in progress.

Progress

90%+ of the planned Project Euler goal has been completed.

Psst...

There are things hidden throughout this project.
Some are easier to find than others.
anime might be an interesting argument. 👀