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

Ruff All the Things #1531

Merged
merged 21 commits into from
Nov 20, 2024
Merged

Ruff All the Things #1531

merged 21 commits into from
Nov 20, 2024

Conversation

dokterbob
Copy link
Collaborator

@dokterbob dokterbob commented Nov 19, 2024

This PR contains a number of improvements to the Python/backend linting/formatting, as well as many auto-generated fixes and formatting applied globally, to prevent gunk in future PR's.

In the process, I discovered that changed made by ruff's linter and formatters were not being added to commits, which was causing contributors a lot of frustration. I also discovered ruff was not properly configured and no actual linters were enabled, other than sorting of imports.

This PR includes:

  1. Ruff configuration (Python version, enable relevant linters and reasonable exceptions).
  2. Bump ruff to latest version.
  3. Various fixups, including:
    a. A critical fixup regarding the new Dataframe element.
    b. Logging instead of ignoring arbitrary errors.
    c. Upgrades to more modern Python syntax.
  4. Changes made by ruff are adding to commits in lint-staged.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 19, 2024
@dokterbob dokterbob enabled auto-merge (squash) November 19, 2024 10:43
@dokterbob dokterbob added the review-me Ready for review! label Nov 19, 2024
@dokterbob dokterbob changed the title Format All the Things Ruff All the Things Nov 19, 2024
@dokterbob dokterbob merged commit 2ea6aac into main Nov 20, 2024
9 checks passed
@dokterbob dokterbob deleted the dokterbob/format_all_things branch November 20, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-me Ready for review! size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants