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

Update ruff configuration to fix deprecation warnings. #39

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

plietar
Copy link
Member

@plietar plietar commented Apr 9, 2024

ruff has deprecated top-level lint settings, instead they must be moved into a dedicated lint section. Additionally, the CLI now needs to be invoked with a check subcommand.

https://astral.sh/blog/ruff-v0.2.0#configuration-changes
astral-sh/ruff#10169

ruff has deprecated top-level lint settings, instead they must be moved
into a dedicated `lint` section. Additionally, the CLI now needs to be
invoked with a `check` subcommand.

https://astral.sh/blog/ruff-v0.2.0#configuration-changes
astral-sh/ruff#10169
@plietar plietar requested a review from richfitz April 9, 2024 10:03
@richfitz
Copy link
Member

richfitz commented Apr 9, 2024

Not sure why the windows test is failing here; unrelated to these changes. Is this something that fails sometimes perhaps (e.g., timing difference on windows?)

@plietar
Copy link
Member Author

plietar commented Apr 9, 2024

It seems to be about different ordering when comparing two lists of IDs: https://github.com/mrc-ide/outpack-py/actions/runs/8613882705/job/23606156639#step:5:72

The LHS is always sorted alphabetically (in https://github.com/mrc-ide/outpack-py/blob/5f927d6892c05d3eca18fb559f82f83a88a60866/src/outpack/index.py#L65), the RHS is sorted by order of creation. If the packets are created within the same time fraction (I don't know what the resolution is), these two orders may not be the same.

I've re-run the test and it passed now. I'll merge this and fix the issue separately.

@plietar plietar merged commit ccd9c2b into main Apr 9, 2024
7 checks passed
@plietar
Copy link
Member Author

plietar commented Apr 9, 2024

Fix in #40

@plietar plietar deleted the fix-warnings branch April 11, 2024 19:34
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