这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

Enable the flake8-bugbear ruff lint rules, but disable all of the ones which actually occur in the current codebase, so they can be handled one-by-one.

The bugbear lint rules are generally pretty helpful, especially B006: mutable data structures for argument defaults.

We will leave in place the "ignore" for B005: multi-character strip().

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

but disable all of the ones which actually occur in the current
codebase, so they can be handled one-by-one.

The bugbear lint rules are generally pretty helpful, especially B006:
mutable data structures for argument defaults.

We will leave in place the ignore for B005: multi-character strip().
@rolandwalker rolandwalker self-assigned this Oct 25, 2025
@rolandwalker rolandwalker merged commit ff4ce79 into main Oct 25, 2025
8 checks passed
@rolandwalker rolandwalker deleted the RW/enable-bugbear-lint-rules branch October 25, 2025 17:56
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.

2 participants