Adopt uv, ruff, pre-commit, and CI tooling#37
Open
mshettyFE wants to merge 1 commit into
Open
Conversation
mshettyFE
commented
Jul 16, 2026
- Migrate dependency management to uv (uv.lock; consolidate metadata into pyproject [project]; remove setup.py/setup.cfg). Build backend unchanged (setuptools.build_meta) — release pipeline untouched. We want this because uv is a lot faster than alternatives like conda/pip
- Adopt ruff for lint + format and apply across the codebase. lint flags any obvious errors/dropped threads (unused dependencies, unused local variables etc.).
- Format is just so that the codebase complies with PEP8 style guide; purely mechanical and doesn't change runtime behavior. This is the main reason why the diff is so large
- Add pre-commit hooks and CI (pre-commit + pytest). Ensures that you can't forget to run the linter and formatter when committing and that the tests must pass before pushing to the github repo
- Accuracy test passes. formatter modified it, but its' functionality is unchanged
- Migrate dependency management to uv (uv.lock; consolidate metadata into
pyproject [project]; remove setup.py/setup.cfg). Build backend unchanged
(setuptools.build_meta) — release pipeline untouched.
- Adopt ruff for lint + format and apply across the codebase.
- Add pre-commit hooks and CI (pre-commit + pytest).
Author
|
It should also be noted that I plan on adding pyright (re: static checker) if the above gets merged. The nature of that cleanup pass would require more through testing on my part to ensure that no semantics of the program break. The above changes, by their design, should not change the program's functionality in any way (please verify this though). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.