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

Add ruff #120

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add ruff #120

wants to merge 8 commits into from

Conversation

ElliottKasoar
Copy link
Contributor

As discussed with @stenczelt, adds ruff code formatter/linter, which is now used within a pre-commit, and tested through the CI.

For review purposes, I'd suggest looking at each commit in isolation, due to the large number of changes applied. Essentially, these involve:

  1. Adding pre-commit dependencies, and rules for ruff to apply
  2. Creating the pre-commit file to be run
  3. Adding the pre-commit to CI tests
  4. Applying the non-ruff pre-commit hooks to all files (white space formatting etc.)
  5. Applying ruff format and ruff check --fix changes to all files
  6. Applying ruff check --fix --unsafe-fixes and manual fixes to all files
  7. Reapplying ruff format to code added in Fix data model #117

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