yesqa automatically removes unnecessary `# noqa` comments from Python code. It works by running flake8 (or other supported linters) to determine which noqa directives are actually needed. Current version is 1.5.0, released as a command-line tool with no Python API. Maintenance is active.
pip install yesqaVerified import paths — ran on the pinned version, not inferred.
Basic usage: run 'yesqa <file>' to remove unnecessary noqa comments. The tool reads flake8 configuration from setup.cfg, tox.ini, or .flake8 automatically.
Ensure flake8 is installed: pip install flake8
Use version control to review changes: 'git diff' before committing.
Update to latest version: pip install --upgrade yesqa
Run 'pip install flake8' to install flake8.
Specify a file or use wildcard: 'yesqa *.py'
Create a flake8 configuration file (e.g., .flake8) in your project root.