Florian Best
Florian Best
another real life example which was caused by this: ``` def _fake_func(self, iterator, *args): - for args in iterator: + for _args in iterator: break yield function(self, *args) ```
Maybe the issue title can be change to `False positive with F401 (imported but unused) with mypy type comments` ? can faster be found when searching for this issue. Affects...
yes, `ruff --select RUF100,F401 --fix foo.py` restores the original version
I tried using it and currently get: ``` error[E0425]: cannot find value `cli` in this scope --> ruff_cli/src/args.rs:436:15 | 436 | } else if cli.statistics { | ^^^ not found...
FYI: as I am using this heavily I used your WIP version and rebased onto latest main: https://github.com/spaceone/ruff/pull/new/statistics (in case you want to continue working on it without resolving the...
I somehow need a way to exclusively select `RUF100` so that I can get a list of issues (and fixes) only for that one.
fixing only is possible via: `ruff --select ALL --extend-select RUF100 --fix-only --unfixable ALL --fixable RUF100 $(python_files)` selecting only is possible via: `ruff --select ALL --extend-select RUF100 $(python_files) | grep RUF100`...
I wouldn't use a configurable list of files as files are too often just changing by too many people. The files are tracked in git and all of them might...
I guess they all have no extension. simple scripts.
That would be great. we have 462 python files without file extensions and 4 python files with (accidental) file extensions (`.in`, `.conf`, `.3`, `.0-dev`)