-
Notifications
You must be signed in to change notification settings - Fork 173
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
Use ruff
for linting, code formatting and module sorting
#254
Comments
Our
The rationale is that the are other tools for this job, such as |
flake8 is typically used for this purpose, I would recommend it in general as a pretty fast general purpose linter. |
I have done this in the past in Dangerzone. But I don't recall what I used. |
As detected by [ruff](https://github.com/astral-sh/ruff) Related to freedomofpress#254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to freedomofpress#254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to freedomofpress#254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to #254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to #254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to #254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to #254, although it doesn't provide the command to lint the codebase itself.
As detected by [ruff](https://github.com/astral-sh/ruff) Related to freedomofpress#254, although it doesn't provide the command to lint the codebase itself.
Generally speaking, ruff seems the goto project for linting and formatting these days, and it's providing hints for this: https://docs.astral.sh/ruff/rules/unused-import/. |
ruff
for linting, code formatting and module sorting
I'd like to work on this. I've been planning on opening a PR for a while now actually, but I've mostly focused on wrangling the Dangerzone Windows installer and WiX Toolset. But maybe as a fun weekend project... |
Great, don't hesitate to do it and let us know, it'll be a welcome addition 👍 |
Finally got around to opening the PR see #1019 |
The codebase has several unused imports, that a linter could warn against. Find a linter for this job and use it as part of our
make lint
action.The text was updated successfully, but these errors were encountered: