Skip to content

re-enable more ruff rules - #25339

Open
eviljeff wants to merge 1 commit into
mozilla:masterfrom
eviljeff:00000-enable-more-ruff-rules
Open

re-enable more ruff rules#25339
eviljeff wants to merge 1 commit into
mozilla:masterfrom
eviljeff:00000-enable-more-ruff-rules

Conversation

@eviljeff

@eviljeff eviljeff commented Aug 25, 2026

Copy link
Copy Markdown
Member

Follow-up from mozilla/addons#16365

Description

Removes more ignored ruff rules so we're (somewhat) closer to the standard list of ruff formatting/linting rules.

Context

Method: Starting at the bottom of the ignore list - so we can remove the most number of exceptions with the fewest lines of change - I've been removing rules in batches, then asking Claude to fix, then checking the result to see if it makes sense to me. This pr is the bottom 30 rules, excluding the INT rules, because they relate to localized strings and they could be changing in the next 3 months anyway with pinguino.

Testing

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • Successfully verified the change locally.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.
  • Add before and after screenshots (Only for changes that impact the UI).
  • Add or update relevant docs reflecting the changes made.

@eviljeff
eviljeff force-pushed the 00000-enable-more-ruff-rules branch from 7862757 to 91979d4 Compare August 25, 2026 09:15
@eviljeff
eviljeff force-pushed the 00000-enable-more-ruff-rules branch from 91979d4 to 1b5c387 Compare August 25, 2026 10:02
@eviljeff
eviljeff marked this pull request as ready for review August 25, 2026 10:21
@eviljeff
eviljeff requested review from a team and nothingrandom and removed request for a team August 25, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant