Skip to content

Move versions declaration in pyproject.toml#700

Merged
Marc-Andrieu merged 8 commits intomainfrom
version-declaration
Jun 1, 2025
Merged

Move versions declaration in pyproject.toml#700
Marc-Andrieu merged 8 commits intomainfrom
version-declaration

Conversation

@Marc-Andrieu
Copy link
Member

Why

How

  • I tried cleverly adding toml_file="pyproject.toml", in the SettingsConfigDict (line 49) so that the model would load fields from both config files (.env and pyproject.toml), but it seems Pydantic does not allow that at all...
  • So I went using Python's native tomllib TOML parser : it the only solution that worked for me, and it's short.
    • (The with is out of the class because Pydantic started crying about the type of the bytes flow from reading the file)

pyproject.toml

  • I just wanted to add
version = "4.3.3"
minimal-titan-version-code = 139

to the [project] table, but I realized it didn't even exist, so I ended up writing the bare minimum.

  • Perhaps we should fill this file seriously...
    • it is powerful for automation and description (it could not hurt to have it filled),
    • and required to make a release on PyPI (we already release CalypSSO and the HA wrapper, why not Hyperion itself?).

@Marc-Andrieu Marc-Andrieu added help wanted Extra attention is needed core ready for review This PR is ready to be reviewed code quality labels May 2, 2025
@codecov
Copy link

codecov bot commented May 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.40%. Comparing base (3959662) to head (99e738c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #700      +/-   ##
==========================================
+ Coverage   81.38%   81.40%   +0.02%     
==========================================
  Files         163      163              
  Lines       12218    12232      +14     
==========================================
+ Hits         9944     9958      +14     
  Misses       2274     2274              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@Marc-Andrieu
Copy link
Member Author

The workflow fails because we're still using Ruff 0.5 and it needs Ruff >=0.8 : astral-sh/ruff#13869 (comment)

So I'm going to need #697

@Marc-Andrieu Marc-Andrieu force-pushed the version-declaration branch from e543d43 to b9489c3 Compare May 4, 2025 16:12
Copy link
Member

@armanddidierjean armanddidierjean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great!

@Marc-Andrieu Marc-Andrieu force-pushed the version-declaration branch from 9a9688a to 1592b27 Compare May 17, 2025 11:36
@Marc-Andrieu Marc-Andrieu force-pushed the version-declaration branch from 23cf566 to f6cedcc Compare June 1, 2025 13:08
@Marc-Andrieu Marc-Andrieu merged commit 11c5e19 into main Jun 1, 2025
7 checks passed
@Marc-Andrieu Marc-Andrieu deleted the version-declaration branch January 31, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality core help wanted Extra attention is needed ready for review This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants