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

ci: Run pyupgrade with Ruff #286

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

pederhan
Copy link
Member

This PR replaces the pyupgade pre-commit hook with the UP ruff rule.

One of the fixes suggested by UP was to replace typing.DefaultDict with collections.defaultdict for an annotation in repl._help_internal(). I want to ensure that works across all versions, so a test for that function has also been added.

@pederhan pederhan merged commit 2080fc0 into unioslo:master Jan 20, 2025
5 checks passed
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.

1 participant