Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use float instead of int for pre-validated mirror score fields #3079

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

correctmost
Copy link
Contributor

PR Description:

This fixes an unnecessary-round ruff warning in validate_score:

archinstall/lib/models/mirrors.py:99:12: RUF057 Value being rounded is already an integer

It also makes the code match the types seen in https://archlinux.org/mirrors/status/json/.

This fixes an unnecessary-round ruff warning in validate_score.
@correctmost correctmost requested a review from Torxed as a code owner January 5, 2025 02:02
@correctmost correctmost marked this pull request as draft January 5, 2025 03:27
@correctmost
Copy link
Contributor Author

While testing this PR, I noticed a larger issue on master: #3081

I will retest when #3081 is fixed.

@svartkanin
Copy link
Collaborator

@correctmost I'll merge this in, it doesn't solve the problem completely but I'll raise a followup for the other bit.
@Torxed I think this explains the problem you've seen

@svartkanin svartkanin merged commit 8aa479b into archlinux:master Jan 22, 2025
8 checks passed
@correctmost correctmost deleted the cm/fix-round-warning branch January 28, 2025 17: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.

2 participants