Open apyrgio opened 2 years ago
Our make lint
command currently employs three linters, none of which has an option to warn on unused imports:
The rationale is that the are other tools for this job, such as pylint
, flake8
, and autoflake
.
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.
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/.
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...
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 👍
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.