-
Notifications
You must be signed in to change notification settings - Fork 5
chore: migrate linting to ruff from black #160
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
base: main
Are you sure you want to change the base?
Conversation
These lint errors have been thrown by ruff
Should these be fixed or has any configuration not been carried over from black? As per ruff's documentation, this would be the default configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.
Files not reviewed (2)
- .vscode/extensions.json: Language not supported
- .vscode/settings.json: Language not supported
Comments suppressed due to low confidence (1)
.pre-commit-config.yaml:5
- Verify if 'ruff-format' is the correct hook id as specified by the ruff-pre-commit documentation, or if it should be updated to simply 'ruff' for consistency.
- id: ruff-format
I checked the suggestion provided by copilot locally using netkos/act. Looks like
|
56a5e34
to
8a30662
Compare
@krishnanand5 CI was failing due to some unused imports, just fixed those in that PR. |
This PR can be open until #179 is merged. Based on uv migration, relevant ruff migration points need to be handled. |
Description
This PR aims to migrate the linting for
py_maidr
from Black to RuffChecklist
Pull Request
Description
This PR aims to establish ruff as the new linting dependancy, moving on from black
Related Issues
Closes #159
Changes Made
The following files have been changed as a result of this PR:
pyproject.toml
to use ruff instead of black whilst retaining configurations from black.ci.yml
to use ruff instead of blackrelease.yml
to use ruff instead of blackpre-commit-config.yaml
to use ruff instead of black.vscode/settings.json
and.vscode/extensions.json
to call upon ruff instead of black and removed its configurationsChecklist
ManualTestingProcess.md
, and all tests related to this pull request pass.