You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are looking to reduce the number of rules ignored in tool.ruff.lint.per-file-ignores by delinting the codebase. This is a great opportunity for new contributors to get involved!
Guidelines:
We welcome delinting of one rule per file, or keeping changes as small as possible per pull request, as it makes it easier for reviewers to check the changes.
If your PR addresses multiple rules or files, reviewers might consider it a large change and suggest splitting it into multiple PRs.
When modifying runtime codebases, be careful not to break backward compatibility. For example, when delinting E722 'bare-except', specifying the type of exception to catch may result in different behavior before and after the change.
If you want to delint without changing the implementation, use the minimal # noqa: RULE comments.
Activity
junkmd commentedon Dec 21, 2024
With the codebase changes up to commit 01ec70d, the following should definitely be achievable.
I’ll leave these changes to new contributors.
[tool.ruff.lint.per-file-ignores] # production -"comtypes/_comobject.py" = ["E713", "E722", "F401"] "comtypes/_npsupport.py" = ["F401"] "comtypes/_vtbl.py" = ["E722"] "comtypes/connectionpoints.py" = ["F401", "F403", "F405"]"comtypes/shelllink.py" = ["F401"] "comtypes/util.py" = ["F403", "F405"] "comtypes/viewobject.py" = ["F403", "F405"] -"comtypes/_post_coinit/unknwn.py" = ["F821"] "comtypes/client/__init__.py" = ["F401", "F403"] "comtypes/client/_code_cache.py" = ["E401", "E711"] "comtypes/client/_constants.py" = ["F401"]Remove F401 (unused import) ignores and fix all violations
Remove F401 (unused import) ignores and fix all violations