Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
While working on isssue #186, I'm realizing that
ruff formatandblackare conflicting with each other in terms of their formatting suggestions, and having both of them as pre-commit hooks is causing changes by the former (ruff) that the latter (black) doesn't like.I'm sure by carefully formatting the code a certain way, one can come up with something that both tools are happy with, but I think this goes against the point of having these automated formatters in the first place. Since they both serve the same purpose with
ruff formatbeing the preferred way as of today, I've removed the latter from the list. A subsequentpre-commit run --all-filesformats just a couple of files, so I think we should be good going forward.Major changes:
blackformatting from the list of pre-commit hookscodespellseems to be picking up blurbs of embedded svg strings in notebook cells and reporting them as spelling errors. There's probably a more fine-grained way to configure codespell, but perhaps we can open up an issue and tackle this later? I think a successfulpre-commit run --all-filesallows us to proceed with other issues for now.Todos
If this is work in progress, what else needs to be done?
Checklist
ruff. (For guidance in fixing rule violates, see rule list)mypy.Tip: Install
pre-commithooks to auto-check types and linting before every commit: